addon.popup

Available in userscripts
Available in popup scripts✔️
Required manifest permissionsNone

Description

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

Properties

addon.popup.isFullscreen

TypeBoolean
NullableNo

Whether the current popup is displayed in fullscreen.

addon.popup.isLightMode

TypeBoolean
NullableNo

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

Methods

addon.popup.getSelectedTabUrl

Return valuePromise<String | null>

Gets the URL of the Scratch tab that is selected.