Savemyexams Unlimiter

Bypasses the new savemyexams topic question blocking and revision notes limit

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 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
    });

})();