Skip to main content

Metadata Support

This page details the user script header metadata tags parsed, displayed, and enforced by Scriptmonkey.

User scripts specify metadata headers inside a // ==UserScript== ... // ==/UserScript== block.

Supported Metadata Keys

KeyDescriptionStatus / Handling
@nameName of the user scriptFully supported. Used as primary title and for script identification.
@namespaceScript namespace identifierFully supported. Combined with @name to uniquely identify scripts and resolve updates/overwrites.
@versionScript version stringFully supported. Parsed and compared numerically/lexicographical during update checks.
@descriptionBrief summary of the scriptFully supported. Displayed in popup lists, script cards, and sidebar metadata.
@matchChrome match pattern targetFully supported. Registered with Chrome userScripts API and used for URL matching.
@includeInclude rule or URL patternFully supported. Supports match patterns, wildcards (*), regular expressions (/.../), and .tld aliases.
@excludeExclude rule or URL patternFully supported. Overrides match and include patterns to prevent script execution on matching URLs.
@run-atTiming of script executionSupported. document-start maps to document_start; all other values default to document_idle.
@updateURLURL to fetch version metadataFully supported. Used by update check runner to inspect remote headers.
@downloadURLURL to download script sourceFully supported. Takes precedence over @updateURL for downloading updated source code.

Parsed & Displayed Keys (No Active Enforcement)

The following keys are parsed into the script's metadata object and rendered in the dashboard's collapsible metadata cards, but currently have no specific extension runtime enforcement:

KeyStatus / Behavior
@grantDisplayed in metadata cards, but privilege/GM API grants are not enforced (scripts run in standard MAIN page world).
@authorParsed into metadata store and displayed in script details cards.
@iconParsed into metadata store and displayed in script details cards.
@licenseParsed into metadata store and displayed in script details cards.
Custom Keys (@customKey)Any additional @key value pair is generic-parsed and displayed in the metadata inspector panel.