Greasy Fork 还支持 简体中文。

Remove premium on Quizlet

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

  1. // ==UserScript==
  2. // @name Remove premium on Quizlet
  3. // @namespace https://bibekchandsah.com.np
  4. // @version 1.0
  5. // @description Removes the "You've reached your limit of free solutions for this book" and blurred part in quizlet
  6. // @author Bibek
  7. // @match https://quizlet.com/*
  8. // @grant none
  9. // @icon https://quizlet.com/_next/static/media/q-twilight.e27821d9.png
  10. // @license https://bibekchandsah.com.np
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. // Function to apply styles based on class presence
  17. function applyStylesBasedOnClassPresence() {
  18. try {
  19. // Check for class "b1xkd811"
  20. var elementsB1xkd811 = document.querySelectorAll('.b1xkd811');
  21. elementsB1xkd811.forEach(function(element) {
  22. element.style.filter = 'blur(0rem)';
  23. });
  24.  
  25. // Check for class "pfdaoy0"
  26. var elementsPfdaoy0 = document.querySelectorAll('.pfdaoy0');
  27. elementsPfdaoy0.forEach(function(element) {
  28. element.style.display = 'none';
  29. });
  30. } catch (error) {
  31. console.error('Error applying styles:', error);
  32. }
  33. }
  34.  
  35. // Interval function to continuously check and apply styles
  36. setInterval(applyStylesBasedOnClassPresence, 1000); // Check every 1000 milliseconds (1 second)
  37.  
  38. })();