True when this is an incognito profile (Chrome) or private mode (Firefox).
Unlike navigator.userAgent
, which can be overriden by other extensions/userscripts
or by devtools in device-emulation mode, GM_info.platform
is more reliable as the
data is obtained in the background page of Violentmonkey using a specialized
extension API (browser.runtime.getPlatformInfo
and getBrowserInfo
).
Contains structured fields from the Metadata Block.
The name of userscript manager, which should be the string Violentmonkey
.
The meta block of the script.
Whether the script will be updated automatically.
A safe copy of navigator.userAgent
from the content script of the extension,
so it cannot be overridden by other extensions/userscripts, but unlike
GM_info.platform
it can be customized in devtools “device emulation” or
“network conditions” for this tab.
Optional
userA safe copy of navigator.userAgentData
from the content script of the extension,
so it cannot be overridden by other extensions/userscripts, but unlike
GM_info.platform
it can be customized in devtools "device emulation" or
"network conditions" for this tab.
Only present if the browser actually implements it (currently Chromium-based 90+), because there's no reliable/official polyfill.
Violentmonkey implements the official API, including getHighEntropyValues function to obtain the extra info asynchronously.
A unique ID of the script.
Version of Violentmonkey.
The injection mode of current script. See
@inject-into
for more information.