Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
3 results across 6 corpora for userScripts.resetWorldConfiguration().
Developer library 3
userScripts
ons() - : Returns all the extension's registered world configurations. - userScripts.register() - : Registers user scripts for the extension. - userScripts.resetWorldConfiguration() - : Resets the configuration for a `USER_SCRIPT` world registered by the extension. - userScripts.unregister() - : Unregisters user scripts registered by the extension. - userScripts.update() - : Updates user scripts registered
userScripts.configureWorld()
ay fail if the extension sets `messaging` to `false`. World configurations persist until the extension is updated or the configuration is reset by userScripts.resetWorldConfiguration(). ## Syntax ```js-nolint let configuredWorld = browser.userScripts.configureWorld( properties // object ); ``` ### Parameters - `properties` - : userScripts.WorldProperties. Details of the configuration for a `USER_SCRIPT
userScripts.resetWorldConfiguration()
calls from a `USER_SCRIPT` world may fail when `messaging` is reset to `false`. ## Syntax ```js-nolint let resettingWorldConfiguration = browser.userScripts.resetWorldConfiguration( worldId // optional string ); ``` ### Parameters - `worldId` - : `string` The ID of the `USER_SCRIPT` world to reset. If omitted or empty, resets the configuration of the default world and all worlds without a configuratio