GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

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 contentScripts.register().

Dictionary 0

Papers 0

Wikidata 0

Developer library 6

user_scripts

cript` parameter received by the userScripts.onBeforeScript listener (as `script.metadata`). ## Browser compatibility ## See also - userScripts (Legacy) - contentScripts

userScripts (Legacy)

script instructs the browser to attach the script to pages that match the URL patterns specified during registration. This API offers similar capabilities to contentScripts but with features suited to handling third-party scripts: - execution is in an isolated sandbox: each user script is run in an isolated sandbox within the web content processes, preventing accidental or deliberate interference among scripts. -

userScripts.register() (Legacy)

serScripts 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 promise that resolves to an API object with an unregister() method for unregistering the script). There are, however, differences in the options supported. This is an asynchronous method th

userScripts.onBeforeScript (Legacy)

yAsyncMethod(param1, param2, param3) { // exported methods can also be declared as async }, }); }); ``` ## Browser compatibility ## See also - contentScripts

UserScripts.UserScriptOptions (Legacy)

pts 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 support a CSS property (use `browser.contentScripts.register` to dynamically register/unregister stylesheets) - It does support an optional `scriptMetadata` property (as a plain JSON object which co

contentScripts

browser to insert the given content scripts into pages that match the given URL patterns. > [!NOTE] > When using Manifest V3 or higher, use scripting.registerContentScripts() to register scripts. This API is very similar to the [`"content_scripts"`](/docs/Mozilla/Add-ons/WebExtensions/manifest.json/content_scripts) [`manifest.json`](/docs/Mozilla/Add-ons/WebExtensions/manifest.json) key, except that with `"content

JSON results · Services directory