Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
6 results across 6 corpora for menus.ContextType.
Developer library 6
Context menu items
nus.create it's displayed in all browser tabs, but you can hide it by removing it with menus.remove. The full list of supported contexts is available at menus.ContextType and includes contexts outside of a web page, such as bookmark items in the browser UI. For example, the "[Open bookmark in Container Tab](https://github.com/Rob--W/bookmark-container-tab)" extension adds a menu item that allows the user to open a b
pageAction
Content_scripts) and interact with it. The button also has a context menu, and you can add items to this menu with the menus API using the `page_action` menus.ContextType. Page actions are for actions that are only relevant to particular pages (such as "bookmark the current tab"). If they are relevant to the browser as a whole (such as "show all bookmarks"), use a [browser action](/docs/Mozilla/Add-ons/WebExtension
action
ur extension when the user clicks the icon. The button also has a context menu, and you can add items to this menu with the menus API using the `action` menus.ContextType. With the `action` API, you can: - use action.onClicked to listen for clicks on the icon. - get and set the icon's properties — icon, title, popup, and so on. You can get and set these globally across all tabs or for a tab by passing the tab ID a
action.onClicked
the [`contextMenus`](/docs/Mozilla/Add-ons/WebExtensions/API/menus) API with the "browser_action" [context type](/docs/Mozilla/Add-ons/WebExtensions/API/menus/ContextType). ## Syntax ```js-nolint browser.action.onClicked.addListener(listener) browser.action.onClicked.removeListener(listener) browser.action.onClicked.hasListener(listener) ``` Events have three functions: - `addListener(listener)` - : Adds a lis
browserAction
sion when the user clicks the icon. The button also has a context menu, and you can add items to this menu with the menus API using the `browser_action` menus.ContextType. With the `browserAction` API, you can: - use browserAction.onClicked to listen for clicks on the icon. - get and set the icon's properties — icon, title, popup, and so on. You can get and set these globally across all tabs or for a tab by passin
browserAction.onClicked
the [`contextMenus`](/docs/Mozilla/Add-ons/WebExtensions/API/menus) API with the "browser_action" [context type](/docs/Mozilla/Add-ons/WebExtensions/API/menus/ContextType). ## Syntax ```js-nolint browser.browserAction.onClicked.addListener(listener) browser.browserAction.onClicked.removeListener(listener) browser.browserAction.onClicked.hasListener(listener) ``` Events have three functions: - `addListener(listen