Reddit Auth (*.reddit.com only)

Handle authentication for Reddit, and provide some helper functions for cookies and tokens.

Dette scriptet burde ikke installeres direkte. Det er et bibliotek for andre script å inkludere med det nye metadirektivet // @require https://update.greasyfork.org/scripts/575868/1811613/Reddit%20Auth%20%28%2Aredditcom%20only%29.js

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Forfatter
littux
Versjon
1.0.1
Lagd
29.04.2026
Oppdatert
29.04.2026
Size
3,5 kB
Lisens
GPL-3.0-only

Needs @grant GM_xmlhttpRequest and @connect www.reddit.com to work

Exposes the following functions:

declare var gmFetch: typeof GM_xmlhttpRequest extends (details: infer T) => any ? (details: T) => Promise<Tampermonkey.Response<T["context"]>> : never;
declare var pingURL: (url: string) => Promise<void>;
declare var getCookie: (name: string) => Promise<string | null>;
declare var getCookiePing: (name: string, pingSrc: string) => Promise<string>;
declare var getToken: () => Promise<string>;