Interface VMScriptGMInfoScriptMeta

GM_info.script and GM.info.script Non-optional string property will be an empty string '' if omitted.

interface VMScriptGMInfoScriptMeta {
    antifeature?: string[];
    author?: string;
    compatible?: string[];
    connect?: string[];
    description: string;
    downloadURL?: string;
    excludeMatches: string[];
    excludes: string[];
    grant: string[];
    homepage?: string;
    homepageURL?: string;
    icon?: string;
    includes: string[];
    matches: string[];
    name: string;
    namespace: string;
    noframes?: boolean;
    options: {
        check_for_updates: boolean;
        inject_into: VMScriptInjectInto;
        noframes: boolean;
        override: {
            merge_exclude_matches: boolean;
            merge_excludes: boolean;
            merge_includes: boolean;
            merge_matches: boolean;
            use_exclude_matches: string[];
            use_excludes: string[];
            use_includes: string[];
            use_matches: string[];
        };
        run_at: VMScriptRunAt;
        tags: string[];
        user_modified: number;
    };
    require: string[];
    resources: { name: string; url: string }[];
    runAt: "" | VMScriptRunAt;
    supportURL?: string;
    unwrap?: boolean;
    updateURL?: string;
    version: string;
}

Properties

antifeature?: string[]
author?: string
compatible?: string[]
connect?: string[]
description: string
downloadURL?: string
excludeMatches: string[]
excludes: string[]
grant: string[]

Empty is the same as @grant none

homepage?: string

Use homepageURL instead

homepageURL?: string
icon?: string
includes: string[]
matches: string[]
name: string
namespace: string
noframes?: boolean
options: {
    check_for_updates: boolean;
    inject_into: VMScriptInjectInto;
    noframes: boolean;
    override: {
        merge_exclude_matches: boolean;
        merge_excludes: boolean;
        merge_includes: boolean;
        merge_matches: boolean;
        use_exclude_matches: string[];
        use_excludes: string[];
        use_includes: string[];
        use_matches: string[];
    };
    run_at: VMScriptRunAt;
    tags: string[];
    user_modified: number;
}

User options and overrides for the script

Type declaration

  • check_for_updates: boolean
  • inject_into: VMScriptInjectInto
  • noframes: boolean
  • override: {
        merge_exclude_matches: boolean;
        merge_excludes: boolean;
        merge_includes: boolean;
        merge_matches: boolean;
        use_exclude_matches: string[];
        use_excludes: string[];
        use_includes: string[];
        use_matches: string[];
    }
    • merge_exclude_matches: boolean

      Keep the script's @exclude-match

    • merge_excludes: boolean

      Keep the script's @exclude

    • merge_includes: boolean

      Keep the script's @include

    • merge_matches: boolean

      Keep the script's @match

    • use_exclude_matches: string[]

      User overridden @exclude-match

    • use_excludes: string[]

      User overridden @exclude

    • use_includes: string[]

      User overridden @include

    • use_matches: string[]

      User overridden @match

  • run_at: VMScriptRunAt
  • tags: string[]
  • user_modified: number

    Last modification by the user; convertible as new Date(user_modified)

VM2.31.1

require: string[]
resources: { name: string; url: string }[]
runAt: "" | VMScriptRunAt
supportURL?: string
unwrap?: boolean
updateURL?: string
version: string