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