moderator-toolbox-nxg-for-reddit / background/handlers/cookieStore

background/handlers/cookieStore

Functions

registerCookieStoreHandlers()

registerCookieStoreHandlers(): void

Defined in: extension/data/background/handlers/cookieStore.ts:90

Registers the Firefox cookie-store rewrite listener. No-op where blocking webRequest is unavailable.

Returns

void


tmpStoreHeaders()

tmpStoreHeaders(cookieStoreId): Record<string, string> | undefined

Defined in: extension/data/background/handlers/cookieStore.ts:41

Returns the temporary tagging header for a request that should use the cookies of cookieStoreId, or undefined when tagging is unnecessary (rewrite inactive, no store, or the default store).

Parameters

cookieStoreId

string | undefined

Returns

Record<string, string> | undefined

Variables

cookieRewriteActive

const cookieRewriteActive: boolean

Defined in: extension/data/background/handlers/cookieStore.ts:34

true when the blocking webRequest cookie-rewrite listener is available (Firefox only). When false, requests are not tagged and behave as before.