Skip to content

Commit 487cda9

Browse files
committed
doc: GM_info.platform.fullVersionList and mobile
1 parent 1d1d111 commit 487cda9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

index.d.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@ declare interface VMScriptGMInfoPlatform {
1111
arch: 'aarch64' | 'arm' | 'arm64' | 'mips' | 'mips64' | 'ppc64' | 's390x' | 'sparc64' | 'x86-32' | 'x86-64';
1212
browserName: 'chrome' | 'firefox' | string;
1313
browserVersion: string;
14+
/**
15+
* A copy of `navigator.userAgentData.getHighEntropyValues()` from the background script
16+
* of the extension, so it's not affected by devtools of the web page tab.
17+
* Not present in browsers that don't implement this API.
18+
* @since VM2.27.0 */
19+
fullVersionList?: {brand: string, version: string}[];
20+
/**
21+
* A copy of `navigator.userAgentData.mobile` from the background script of the extension,
22+
* so it's not affected by devtools of the web page tab.
23+
* Not present in browsers that don't implement this API.
24+
* @since VM2.27.0 */
25+
mobile?: boolean;
1426
os: 'mac' | 'win' | 'android' | 'cros' | 'linux' | 'openbsd' | 'fuchsia';
1527
}
1628

0 commit comments

Comments
 (0)