composeScripts

This compose scripts API first appeared in Thunderbird 77. Functionally it is the same as the content scripts API except that it works on the document of email messages during composition. See the MDN documentation for a more in-depth explanation and Changes in Thunderbird 77 for examples.

See also executeScript, insertCSS, removeCSS, and messageDisplayScripts.

Note

Registering a compose script through manifest.json is not possible at this point.

Note

The permission compose is required to use composeScripts.

Functions

register(composeScriptOptions)

Register a compose script programmatically

Types

RegisteredComposeScript

An object that represents a compose script registered programmatically

object:

  • unregister() Unregister a compose script registered programmatically

RegisteredComposeScriptOptions

Details of a compose script registered programmatically

object: