Interface VMScriptGMInfoPlatform

interface VMScriptGMInfoPlatform {
    arch: "aarch64" | "arm" | "arm64" | "mips" | "mips64" | "ppc64" | "s390x" | "sparc64" | "x86-32" | "x86-64";
    browserName: string;
    browserVersion: string;
    fullVersionList?: {
        brand: string;
        version: string;
    }[];
    mobile?: boolean;
    os: "mac" | "win" | "android" | "cros" | "linux" | "openbsd" | "fuchsia";
}

Properties

arch: "aarch64" | "arm" | "arm64" | "mips" | "mips64" | "ppc64" | "s390x" | "sparc64" | "x86-32" | "x86-64"
browserName: string
browserVersion: string
fullVersionList?: {
    brand: string;
    version: 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.

Type declaration

  • brand: string
  • version: string

Since

VM2.27.0

mobile?: boolean

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

os: "mac" | "win" | "android" | "cros" | "linux" | "openbsd" | "fuchsia"