Remove premium on Quizlet

Removes the "You've reached your limit of free solutions for this book" and blurred part in quizlet

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

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

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

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

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

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Remove premium on Quizlet
// @namespace    https://bibekchandsah.com.np
// @version      1.0
// @description  Removes the "You've reached your limit of free solutions for this book" and blurred part in quizlet
// @author       Bibek
// @match        https://quizlet.com/*
// @grant        none
// @icon         https://quizlet.com/_next/static/media/q-twilight.e27821d9.png
// @license      https://bibekchandsah.com.np
// ==/UserScript==

(function() {
    'use strict';

    // Function to apply styles based on class presence
    function applyStylesBasedOnClassPresence() {
        try {
            // Check for class "b1xkd811"
            var elementsB1xkd811 = document.querySelectorAll('.b1xkd811');
            elementsB1xkd811.forEach(function(element) {
                element.style.filter = 'blur(0rem)';
            });

            // Check for class "pfdaoy0"
            var elementsPfdaoy0 = document.querySelectorAll('.pfdaoy0');
            elementsPfdaoy0.forEach(function(element) {
                element.style.display = 'none';
            });
        } catch (error) {
            console.error('Error applying styles:', error);
        }
    }

    // Interval function to continuously check and apply styles
    setInterval(applyStylesBasedOnClassPresence, 1000); // Check every 1000 milliseconds (1 second)

})();