Skip to content

Commit

Permalink
doc: GM_info.userAgent
Browse files Browse the repository at this point in the history
  • Loading branch information
tophf committed Jul 28, 2024
1 parent 35c87aa commit 1d1d111
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ declare interface VMScriptGMInfoObject {
* extension API (`browser.runtime.getPlatformInfo` and `getBrowserInfo`).
*/
platform: VMScriptGMInfoPlatform;
/**
* A copy of navigator.userAgent from the content script of the extension.
* @since VM2.20.2 */
userAgent: string;
/**
* A copy of navigator.userAgentData from the content script of the extension.
* Not present in browsers that don't implement this API.
Expand Down

0 comments on commit 1d1d111

Please sign in to comment.