Handle authentication for Reddit, and provide some helper functions for cookies and tokens.
Este script no debería instalarse directamente. Es una biblioteca que utilizan otros scripts mediante la meta-directiva de inclusión // @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>;