This special API object exposes some information to the script directly in the Greasemonkey context.
⬆ ⬇ | Examples | See Also | Notes
GM_info.property
Value: Object
Compatibility: Greasemonkey 0.9.16 - 3.12.0
Access: (Always available in or out of sandbox in Greasmonkey context only)
Properties
Properties | ||||||
---|---|---|---|---|---|---|
isIncognito / isPrivate | script | scriptMetaStr | scriptSource | scriptWillUpdate | uuid | version |
Value: Boolean
true
if running in a private browsing window.Value: script
.name or script
["name"]
Names | |||||
---|---|---|---|---|---|
description | excludes | includes | localizedName | localizedDescription | matches |
name | namespace | noframes | resources | run-at | version |
script
.descriptionValue: String
@description
value if available.script
.excludesValue: Array of Strings
@exclude
value(s) if available.script
.includesValue: Array of Strings
@include
value(s) if available.script
.localizedNameValue: String
@name
value if available.script
.localizedDescriptionValue: String
@description
value if available.script
.matchesValue: Array of Strings
@match
value(s) if available.script
.nameValue: String
@name
value.script
.namespaceValue: String
@namespace
value.script
.noframesValue: Boolean
@noframes
value if available.script
.resourcesValue: Array of Strings
@resource
value(s) if available.script
["run-at"]Value: String
@run-at
value.script
.versionValue: String
@version
value if available.Value: String
Value: String
Value: Boolean
true
for automatic updates assuming the @version
has been appropriately set.Value: String
Value: String
alert(GM_info.version); alert(GM_info.script.version);
scriptHandler
or the like). Other .user.js engines may differ somewhat in their implementation.