Reddit Auth (*.reddit.com only)

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

Tento skript by neměl být instalován přímo. Jedná se o knihovnu, kterou by měly jiné skripty využívat pomocí meta příkazu // @require https://update.greasyfork.org/scripts/575868/1812157/Reddit%20Auth%20%28%2Aredditcom%20only%29.js

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

Autor
littux
Verze
1.0.1
Vytvořeno
29. 04. 2026
Aktualizováno
29. 04. 2026
Size
3,5 KB
Licence
GPL-3.0-only

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

Exposes the following functions:

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