Savemyexams Unlimiter

Bypasses the new savemyexams topic question blocking and revision notes limit

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Savemyexams Unlimiter
// @namespace    http://tampermonkey.net/
// @version      1.2
// @description  Bypasses the new savemyexams topic question blocking and revision notes limit
// @author       Hexanut
// @match        *://*.savemyexams.com/*
// @grant        none
// @license      MIT
// ==/UserScript==

setInterval(() => {
    localStorage.removeItem("SME.topic-question-views");
    localStorage.removeItem("SME.topic-question-part-solution-views");
    localStorage.removeItem("SME.revision-note-views");
    localStorage.removeItem("SME.first-viewed-topic-question-at");
}, 1000);

(function() {
    'use strict';

    function processTabPanes() {
        let processed = false;

        // Find all divs with ID containing "tabpane" (case-insensitive)
        document.querySelectorAll('div[id]').forEach(tabPane => {
            if (!/tabpane/i.test(tabPane.id)) return;

            // Handle blur elements (case-insensitive)
            const blurElement = tabPane.querySelector('[class*="blur" i]');
            if (blurElement) {
                blurElement.className = '';
                processed = true;
            }

            // Handle limit walls
            const limitWall = tabPane.querySelector('[class*="limit-wall_wrapper" i]');
            if (limitWall) {
                limitWall.remove();
                processed = true;
            }
        });

        return processed;
    }

    // First attempt
    if (processTabPanes()) return;

    // Persistent observer for dynamic content
    const observer = new MutationObserver(mutations => {
        mutations.forEach(() => {
            processTabPanes();
        });
    });

    observer.observe(document.body, {
        childList: true,
        subtree: true,
        attributes: false,
        characterData: false
    });

})();