MDN self-hosted library · e01.org

userScripts.getWorldConfigurations()

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

no runnable cells webextension-api-function upstream source

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

Syntax

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