Fiveable Bypass Script

clear local storage and refresh to bypass fiveable paywall

Stan na 12-05-2025. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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 });
})();