Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
4 results across 6 corpora for UserScripts.UserScriptOptions (Legacy).
Developer library 4
userScripts (Legacy)
cript - : The `object` returned by the register() method. It represents the registered user scripts and is used to deregister the user scripts. - userScripts.UserScriptOptions - : The `object` passed to the register() method. It represents the content scripts to register. ## Methods - userScripts.register() - : Registers user scripts. ## Events - userScripts.onBeforeScript - : An event available to the AP
userScripts.register() (Legacy)
supported. This is an asynchronous method that returns a Promise. ## Syntax ```js-nolint const registeredUserScript = await browser.userScripts.register( userScriptOptions // object ); // … await registeredUserScript.unregister(); ``` ### Parameters - `userScriptOptions` - : `object`. Represents the user scripts to register. It has similar syntax to contentScripts.register(). The `UserScriptOptio
UserScripts.UserScriptOptions (Legacy)
acy `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 support a CSS property (use `browser.contentScripts.r
RegisteredUserScript.unregister() (Legacy)
s at least as long as you want the user scripts to stay registered. ## Syntax ```js-nolint const registeredUserScript = await browser.userScripts.register( userScriptOptions // object ); // … await registeredUserScript.unregister() ``` ### Parameters None. ### Return value A Promise that is resolved once the user scripts are unregistered. The promise does not return a value. ## Browser compatibility