Handle authentication for Reddit, and provide some helper functions for cookies and tokens.
Ovu skriptu ne treba izravno instalirati. To je biblioteka za druge skripte koje se uključuju u meta direktivu // @require https://update.greasyfork.org/scripts/575868/1811613/Reddit%20Auth%20%28%2Aredditcom%20only%29.js
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>;