@violentmonkey/types
    Preparing search index...

    Variable GM_cookieConst

    GM_cookie: {
        delete: (
            opts: browser.cookies._RemoveDetails | chrome.cookies.CookieDetails,
            callback?: (error?: string) => any,
        ) => void;
        list: (
            opts:
                | browser.cookies._GetAllDetails
                | Parameters<typeof chrome.cookies.getAll>[0],
            callback?: (
                cookies?: browser.cookies.Cookie | chrome.cookies.Cookie,
                error?: string,
            ) => any,
        ) => void;
        set: (
            opts:
                | browser.cookies._SetDetails
                | Parameters<typeof chrome.cookies.set>[0],
            callback?: (error?: string) => any,
        ) => void;
    }

    Type Declaration

    • delete: (
          opts: browser.cookies._RemoveDetails | chrome.cookies.CookieDetails,
          callback?: (error?: string) => any,
      ) => void
    • list: (
          opts:
              | browser.cookies._GetAllDetails
              | Parameters<typeof chrome.cookies.getAll>[0],
          callback?: (
              cookies?: browser.cookies.Cookie | chrome.cookies.Cookie,
              error?: string,
          ) => any,
      ) => void

      httpOnly cookies are listed only when the HTTP-only option is enabled for the script and globally in the extension

    • set: (
          opts:
              | browser.cookies._SetDetails
              | Parameters<typeof chrome.cookies.set>[0],
          callback?: (error?: string) => any,
      ) => void

      httpOnly cookies are allowed only when the HTTP-only option is enabled for the script and globally in the extension

    VM2.35.1