@violentmonkey/types
    Preparing search index...

    Interface VMScriptGMDownloadOptions

    interface VMScriptGMDownloadOptions {
        anonymous?: boolean;
        conflictAction?: FilenameConflictAction;
        context?: unknown;
        headers?: Record<string, string>;
        name: string;
        onabort?: (resp: VMScriptResponseObject<Blob>) => void;
        onerror?: (resp: VMScriptResponseObject<Blob>) => void;
        onload?: (resp: VMScriptResponseObject<Blob>) => void;
        onloadend?: (resp: VMScriptResponseObject<Blob>) => void;
        onloadstart?: (resp: VMScriptResponseObject<Blob>) => void;
        onprogress?: (resp: VMScriptResponseObject<Blob>) => void;
        onreadystatechange?: (resp: VMScriptResponseObject<Blob>) => void;
        ontimeout?: (resp: VMScriptResponseObject<Blob>) => void;
        password?: string;
        saveAs?: boolean;
        timeout?: number;
        url: string;
        user?: string;
    }

    Hierarchy (View Summary)

    Index
    anonymous?: boolean

    When set to true, no cookie will be sent with the request and the response cookies will be ignored. The default value is false.

    conflictAction?: FilenameConflictAction

    Used only when GM_info.downloadMode === 'browser'

    context?: unknown

    Can be an object and will be assigned to context of the response object.

    headers?: Record<string, string>

    Some special headers are also allowed:

    • Cookie
    • Host
    • Origin
    • Referer
    • User-Agent
    name: string

    The filename to save as.

    onabort?: (resp: VMScriptResponseObject<Blob>) => void
    onerror?: (resp: VMScriptResponseObject<Blob>) => void
    onload?: (resp: VMScriptResponseObject<Blob>) => void
    onloadend?: (resp: VMScriptResponseObject<Blob>) => void
    onloadstart?: (resp: VMScriptResponseObject<Blob>) => void
    onprogress?: (resp: VMScriptResponseObject<Blob>) => void
    onreadystatechange?: (resp: VMScriptResponseObject<Blob>) => void
    ontimeout?: (resp: VMScriptResponseObject<Blob>) => void
    password?: string

    Password for authentication.

    saveAs?: boolean

    Shows the dialog. Used only when GM_info.downloadMode === 'browser'

    timeout?: number

    Time to wait for the request, none by default.

    url: string

    URL relative to current page is also allowed.

    user?: string

    User for authentication.