您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
clear local storage and refresh to bypass fiveable paywall
// ==UserScript== // @name Fiveable Bypass Script // @namespace http://tampermonkey.net/ // @version 1000 // @author 0xBear // @description clear local storage and refresh to bypass fiveable paywall // @match *://fiveable.me/* // @match *://*.fiveable.me/* // @grant none // @run-at document-start // @license MIT // ==/UserScript== (function() { // Disable localStorage localStorage.clear(); console.log('running'); // clear localStorage and close popup setInterval(() => { localStorage.clear(); const button = document.querySelector('.MuiButtonBase-root.MuiIconButton-root.MuiIconButton-sizeMedium.css-19l2szi'); if (button) { button.click(); } else { } }, 1000); // Check for hard stop const targetSelector = '.MuiDialogContent-root.css-1a36fg .MuiBox-root[data-testid="timed-hard-gate"]'; function checkAndRefresh() { const targetElement = document.querySelector(targetSelector); if (targetElement) { console.log('Target element detected. Refreshing the page...'); localStorage.clear(); location.reload(); } } const observer = new MutationObserver(checkAndRefresh); observer.observe(document.body, { childList: true, subtree: true }); })();