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 Working with userScripts.
Developer library 6
Work with documentId
scripting.removeCSS() accept a `tabId` and optional `frameIds` in their scripting.InjectionTarget to specify where to inject into. - **User script injection**: userScripts.execute() takes `tabId` and `frameIds` in its `target`. - **Messaging**: tabs.sendMessage() and tabs.connect() accept a `tabId` and optional `frameId` to direct a message to its recipient. - **Frame information**: webNavigation.getFrame() and webNa
userScripts (Legacy)
> [!WARNING] > This is documentation for the legacy `userScripts` API. It's available in Firefox for Manifest V2. For functionality to work with user scripts in Manifest V3 see the new userScripts API. Use this API to register user scripts, third-party scripts designed to manipulate webpages or provide new features. Registering a user script instructs the browser to attach the script to pages that match the URL patt
userScripts.register() (Legacy)
> [!WARNING] > This is documentation for the legacy `userScripts` API. It's available in Firefox for Manifest V2. For functionality to work with user scripts in Manifest V3 see the new userScripts API. This method enables user scripts to be registered from an extension's pages (such as the background page). This method is very similar to the contentScripts.register() API method (for example, they both return a prom
Working with userScripts
> [!WARNING] > This is documentation for the legacy `userScripts` API. It's available in Firefox for Manifest V2. For functionality to work with user scripts in Manifest V3 see the new userScripts API. By implementing userScripts, extension developers can modify how sites look and/or work to better meet user needs. Implement userScripts in your extension using the following steps: 1. Define the script in the exten
userScripts.onBeforeScript (Legacy)
> [!WARNING] > This is documentation for the legacy `userScripts` API. It's available in Firefox for Manifest V2. For functionality to work with user scripts in Manifest V3 see the new userScripts API. The `onBeforeScript` event of the browser.userScripts is fired before a user script is executed. It can only be included in the API script, the script registered in [`"user_scripts"`](/docs/Mozilla/Add-ons/WebExtensio
UserScripts.UserScriptOptions (Legacy)
> [!WARNING] > This is documentation for the legacy `userScripts` API. It's available in Firefox for Manifest V2. For functionality to work with user scripts in Manifest V3 see the new userScripts API. The `UserScriptOptions` object represents the content scripts to register. It has similar syntax to the `contentScript` options supported by `browser.contentScripts.register`. The differences are: - it does not suppo