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
-
set: (
opts:
| browser.cookies._SetDetails
| Parameters<typeof chrome.cookies.set>[0],
callback?: (error?: string) => any,
) => void
httpOnlycookies are listed only when the HTTP-only option is enabled for the script and globally in the extension