messageDisplayScripts API

Manifest file properties

compose_scripts

[compose_scripts]

(array of ComposeScript, optional)

– [Added in TB 151]

Scripts and CSS to inject into compose windows.

message_display_scripts

[message_display_scripts]

(array of MessageDisplayScript, optional)

– [Added in TB 151]

Scripts and CSS to inject into message display pages.

Types

ComposeScript

– [Added in TB 151]

A script and/or CSS to inject into compose windows via the manifest.

Note

The run_at option is not supported for compose scripts, because the compose editor does not load content in the same way as a regular web page.

object

css

[css]

(array of ExtensionURL, optional)

The list of CSS files to inject.

js

[js]

(array of ExtensionURL, optional)

The list of JavaScript files to inject.

ExtensionURL

A path relative to the root of the extension.

string

MessageDisplayScript

– [Added in TB 151]

A script and/or CSS to inject into message display pages via the manifest.

object

css

[css]

(array of ExtensionURL, optional)

The list of CSS files to inject.

js

[js]

(array of ExtensionURL, optional)

The list of JavaScript files to inject.

run_at

[run_at]

(string, optional)

Determines when the files specified in css and js are injected. The states directly correspond to Document.readyState: loading, interactive and complete.

Supported values:

document_end

document_end

document_idle

document_idle

document_start

document_start