Reddit Auth (*.reddit.com only)

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

Acest script nu ar trebui instalat direct. Aceasta este o bibliotecă pentru alte scripturi care este inclusă prin directiva meta a // @require https://update.greasyfork.org/scripts/575868/1812157/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!)

Autor
littux
Versiune
1.0.1
Creat
29-04-2026
Actualizat
29-04-2026
Size
3,47 KB
Licență
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>;