Skip to content

Commit

Permalink
doc: GM_info.platform.fullVersionList and mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
tophf committed Oct 24, 2024
1 parent 1d1d111 commit 487cda9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ declare interface VMScriptGMInfoPlatform {
arch: 'aarch64' | 'arm' | 'arm64' | 'mips' | 'mips64' | 'ppc64' | 's390x' | 'sparc64' | 'x86-32' | 'x86-64';
browserName: 'chrome' | 'firefox' | string;
browserVersion: string;
/**
* A copy of `navigator.userAgentData.getHighEntropyValues()` from the background script
* of the extension, so it's not affected by devtools of the web page tab.
* Not present in browsers that don't implement this API.
* @since VM2.27.0 */
fullVersionList?: {brand: string, version: string}[];
/**
* A copy of `navigator.userAgentData.mobile` from the background script of the extension,
* so it's not affected by devtools of the web page tab.
* Not present in browsers that don't implement this API.
* @since VM2.27.0 */
mobile?: boolean;
os: 'mac' | 'win' | 'android' | 'cros' | 'linux' | 'openbsd' | 'fuchsia';
}

Expand Down

0 comments on commit 487cda9

Please sign in to comment.