An array of four integers in the range [0,255] that make up the RGBA color of the badge. For example, opaque red is [255, 0, 0, 255]. Can also be a string with a CSS value, with opaque red being #FF0000 or #F00.
Pixel data for an image. Must be an ImageData object (for example, from a canvas element).
ConstonFired when a browser action icon is clicked. This event will not fire if the browser action has a popup.
Disables the browser action for a tab.
OptionaltabId: number
The id of the tab for which you want to modify the browser action.
Enables the browser action for a tab. By default, browser actions are enabled.
OptionaltabId: number
The id of the tab for which you want to modify the browser action.
Returns the user-specified settings relating to an extension's action.
Opens the extension popup window in the specified window.
Optionaloptions: browser.action._OpenPopupOptions
An object with information about the popup to open.
Sets the background color for the badge.
Specifies to which tab or window the value should be set, or from which one it should be retrieved. If no tab nor window is specified, the global value is set or retrieved.
Sets the badge text for the browser action. The badge is displayed on top of the icon.
Specifies to which tab or window the value should be set, or from which one it should be retrieved. If no tab nor window is specified, the global value is set or retrieved.
Sets the text color for the badge.
Specifies to which tab or window the value should be set, or from which one it should be retrieved. If no tab nor window is specified, the global value is set or retrieved.
Sets the icon for the browser action. The icon can be specified either as the path to an image file or as the pixel data from a canvas element, or as dictionary of either one of those. Either the path or the imageData property must be specified.
Specifies to which tab or window the value should be set, or from which one it should be retrieved. If no tab nor window is specified, the global value is set or retrieved.
Sets the html document to be opened as a popup when the user clicks on the browser action's icon.
Specifies to which tab or window the value should be set, or from which one it should be retrieved. If no tab nor window is specified, the global value is set or retrieved.
Sets the title of the browser action. This shows up in the tooltip.
Specifies to which tab or window the value should be set, or from which one it should be retrieved. If no tab nor window is specified, the global value is set or retrieved.
Use browser actions to put icons in the main browser toolbar, to the right of the address bar. In addition to its icon, a browser action can also have a tooltip, a badge, and a popup.
Manifest keys:
action,browser_actionNeeds at least manifest version 3.
Not allowed in: Content scripts, Devtools pages