quizlet paywall remover

Kill the paywall

  1. // ==UserScript==
  2. // @name quizlet paywall remover
  3. // @namespace http://quizlet.com/
  4. // @version 2025-05-06
  5. // @description Kill the paywall
  6. // @author smshxrae
  7. // @match https://quizlet.com/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. var currentURL = window.location.href;
  14. var match = currentURL.match(/quizlet\.com\/explanations/i);
  15. if(match){
  16. let elements = document.getElementsByClassName('o3dpi86 pxrylku');
  17. if (elements.length > 0) {
  18. elements[0].remove(); // Removes the first matching element
  19. }
  20. let elements2 = document.getElementsByClassName('LoginWall wugyavo');
  21. if (elements2.length > 0) {
  22. elements2[0].remove(); // Removes the first matching element
  23. }
  24. let elements3 = document.getElementsByClassName('b1xkd811');
  25. while (elements3.length > 0) {
  26. elements3[0].className = 'my-new-class'; // Overwrites all existing classes
  27. }
  28. }
  29.  
  30. })();