-
visualshock__Do I need the "tabs" permission to open and hide tabs, or is it enough with just activeTab?
-
freaktechnik<visualshock__ "Do I need the "tabs" permission "> I don't think you need either for open, however you'll need a special permission for hiding.
-
freaktechnik(See also developer.mozilla.org/en-US/docs/Mo…illa/Add-ons/WebExtensions/API/tabs on what tabs/activeTab are required for)
-
freaktechnikAnd lastly, this IRC network is going away really soon, so I recommend to follow the topic.
-
visualshock__freaktechnik, thanks for the info
-
visualshock__Is the IRC going away?
-
visualshock__Is there a way to avoid <all_urls> and injecting a content script into every website when you want to listen for right clicks(to get dom node)?
-
freaktechnik<visualshock__ "Is the IRC going away?"> Yes, start of march, so I'd imagine during the next week.
-
freaktechnik<visualshock__ "Is there a way to avoid <all_url"> If you have a context menu item I think activeTab would be enough
-
freaktechnik(If you even need activeTab actually)
-
visualshock__freaktechnik, I do have a context menu item, but I do not see how I can get the element that was right clicked from it. I need to get the css selector.
-
freaktechnik<visualshock__ "freaktechnik, I do have a contex"> developer.mozilla.org/en-US/docs/Mo…tensions/API/menus/getTargetElement
-
visualshock__I get "Missing host permission for the tab", when opening a tab and then trying to close it later, works if I add <all_urls>.
-
visualshock__Looks like I need it since I inject js when opening a tab
-
visualshock__To close a tab from a content script, should I send a message to background that closes it with tabs.remove or can I just call window.close()?
-
zombie-Myou need the permission for injecting a content script, not for closing the tab
-
zombie-Malso, as mentioned, join the matrix channel from the topic
-
visualshock__What is the name of the matrix channel?
-
visualshock__Ah I see