e01.org

userScripts.getWorldConfigurations()

Returns all the USERSCRIPT world configurations registered by the extension with userScripts.configureWorld().

Returns all the `USER_SCRIPT` world configurations registered by the extension with userScripts.configureWorld().

## Syntax

```js-nolint
const gettingWorldConfigurations = await browser.userScripts.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

source: MDN Web Docs mirror · page

Cite this

"userScripts.getWorldConfigurations()". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/userScripts/getWorldConfigurations

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·