Handle authentication for Reddit, and provide some helper functions for cookies and tokens.
이 스크립트는 직접 설치하는 용도가 아닙니다. 다른 스크립트에서 메타 지시문 // @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>;