Skip to content

Instantly share code, notes, and snippets.

View Peekab0's full-sized avatar

Peekab0 Peekab0

View GitHub Profile
((async (startPage = 0, autoClearConsole = true) => {
const getCookie = (name) => {
const value = `; ${document.cookie}`;
const parts = value.split(`; ${name}=`);
if (parts.length === 2) return parts.pop().split(';').shift();
};
const callCacheApi = async (params = {}) => {
const defaultParams = {