Remove premium on Quizlet

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

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

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

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

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

你需要先安裝一款使用者腳本管理器擴展,比如 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)

})();