Skip to content

Commit

Permalink
Add isIncognito tip.
Browse files Browse the repository at this point in the history
  • Loading branch information
Axotot1 authored Sep 30, 2023
1 parent e8445da commit 01a4d87
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions content/api/gm.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ An object that exposes information about the current userscript. It has followin

Version of Violentmonkey.

- <Field name="isIncognito" type="boolean" comment="since VM2.12.4" />

Whether the browser is in Private mode.

- <Field name="platform" type="object" comment="since VM2.12.4" />

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).
Expand Down

0 comments on commit 01a4d87

Please sign in to comment.