Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
5 results across 6 corpora for userScripts.WorldProperties.
Dictionary 0
This corpus is unavailable: timeout
Papers 0
This corpus is unavailable: timeout
Wikidata 0
This corpus is unavailable: timeout
Developer library 5
userScripts
execute() and RegisteredUserScript . - userScripts.UserScriptFilter - : A list of user scripts to be processed by getScripts() or unregister(). - userScripts.WorldProperties - : The configuration of a `USER_SCRIPT` execution environment. ## Methods - userScripts.configureWorld() - : Configures a `USER_SCRIPT` execution environment for the extension. - userScripts.getScripts() - : Returns user scripts regist
userScripts.configureWorld()
x ```js-nolint let configuredWorld = browser.userScripts.configureWorld( properties // object ); ``` ### Parameters - `properties` - : userScripts.WorldProperties. Details of the configuration for a `USER_SCRIPT` world. When `worldId` is omitted or the string is empty, the update is applied to the default world and all worlds without an explicit configuration. When `worldId` is specified only that w
userScripts.WorldProperties
The configuration of a `USER_SCRIPT` execution environment. Used in userScripts.configureWorld and userScripts.getWorldConfigurations. ## Type Values of this type are an object containing these properties: - `worldId` - : `string`. The identifier for the world. Values with leading underscores (`_`) are reserved. The maximum length is 256 characters. Defaults to the default `USER_SCRIPT` world (""). To run a use
userScripts.getWorldConfigurations()
erScripts.getWorldConfigurations(); ``` ### Parameters This function takes no parameters. ### Return value A Promise fulfilled with an array of userScripts.WorldProperties objects. If the request fails, the promise is rejected with an error message. h2 ## Browser compatibility
userScripts.resetWorldConfiguration()
Resets the configuration of a `USER_SCRIPT` world set by userScripts.configureWorld to the defaults specified in userScripts.WorldProperties. When the default world is reset, all worlds without an explicit configuration are also reset. Changes to world configurations only apply to new instances of the world: A configuration won't apply to a world initialized by the execution of a user script in a document until the