addon.popup

Available in userscripts
Available in popup scripts ✔️
Required manifest permissions None

Description

Allows addon popup scripts to get information about the popup context.

Properties

addon.popup.isFullscreen

Type Boolean
Nullable No

Whether the current popup is displayed in fullscreen.

addon.popup.isLightMode

Type Boolean
Nullable No

Whether the user has enabled light mode on Scratch Addons settings.

Methods

addon.popup.getSelectedTabUrl

Return value Promise<String | null>

Gets the URL of the Scratch tab that is selected.