title | slug | page-type | browser-compat |
---|---|---|---|
extensionTypes |
Mozilla/Add-ons/WebExtensions/API/extensionTypes |
webextension-api |
webextensions.api.extensionTypes |
{{AddonSidebar}}
Some common types used in other WebExtension APIs.
- {{WebExtAPIRef("extensionTypes.ImageDetails")}}
- : Details about the format and quality of an image.
- {{WebExtAPIRef("extensionTypes.ImageFormat")}}
- : The format of an image.
- {{WebExtAPIRef("extensionTypes.InjectDetails")}}
- : Injects details into a page.
- {{WebExtAPIRef("extensionTypes.RunAt")}}
- : The soonest that the JavaScript or CSS will be injected into the tab.
extensionTypes.CSSOrigin
- : Indicates whether a CSS stylesheet injected by
tabs.insertCSS
should be treated as an "author" or "user" stylesheet.
- : Indicates whether a CSS stylesheet injected by
{{Compat}}
{{WebExtExamples("h2")}}
Note: This API is based on Chromium's
chrome.extensionTypes
API. This documentation is derived fromextension_types.json
in the Chromium code.