Page tree

 

Defines the context in which a userscript is actually executed.

Short Name
Activation
Relation

To define whether or not a particular userscript is executed is defined by the activation record. The activation record specifies constraints to be met to execute the referenced script. If the activation record is empty or missing, then the referenced script is always executed.

Subordinate Domain Terms

The activation record provides the following properties to control when the referenced script is executed.

Space
A script is activated if the user is viewing resources on a specific space.
Category
A script is activated if the user is viewing resources on space tagged with a given category.
Label
A script is activated if the user is viewing a page, tagged with a given label.
Group
A script is activated if the user is member of a specified group.
User
A script is activated if the user is explicitly referenced by its name.