Tab

Tab

new Tab()

Source:
Tutorials:
  • Tutorial: About-userscripts

addon.tab.* APIs

Available only in userscripts

Extends

  • EventTarget

Members

(static, readonly, nullable) editorMode :string

Source:

editor mode (or null for non-editors).

Type:
  • string

Methods

(static) copyImage(dataURL) → {Promise}

Source:

Copy an PNG image.

Parameters:
Name Type Description
dataURL string

data url of the png image

Returns:
Type
Promise

(static) getScratchVM() → {*}

Source:
Returns:
Type
*

(static) loadScript(url) → {*}

Source:
Parameters:
Name Type Description
url *
Returns:
Type
*

(static) waitForElement(selector, { markAsSeenopt) → {*}

Source:
Parameters:
Name Type Attributes Default Description
selector *
{ markAsSeen * <optional>
false }={}
Returns:
Type
*