Remove premium on Quizlet

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

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==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)

})();