Handle authentication for Reddit, and provide some helper functions for cookies and tokens.
Script này sẽ không được không được cài đặt trực tiếp. Nó là một thư viện cho các script khác để bao gồm các chỉ thị meta
// @require https://update.greasyfork.org/scripts/575868/1812157/Reddit%20Auth%20%28%2Aredditcom%20only%29.js
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>;