messageDisplayScripts

This message display scripts API first appeared in Thunderbird 82. Functionally it is the same as the content scripts API except that it works on the document of email messages being displayed. See the MDN documentation for a more in-depth explanation and Changes in Thunderbird 82 for examples.

See also executeScript, insertCSS, removeCSS, and composeScripts.

Note

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

Permissions

  • messagesModify “Read and modify your email messages as they are displayed to you”

Note

The permission messagesModify is required to use messageDisplayScripts.

Functions

register(messageDisplayScriptOptions)

Register a message display script programmatically

Types

RegisteredMessageDisplayScript

An object that represents a message display script registered programmatically

object:

  • unregister() Unregister a message display script registered programmatically

RegisteredMessageDisplayScriptOptions

Details of a message display script registered programmatically

object: