Quizlet fuzz remover

Remove all flashcard answer fuzz

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

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

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

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

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

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

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name     Quizlet fuzz remover
// @version  1.1
// @grant    none
// @include https://quizlet.com/*-flash-cards/
// @description Remove all flashcard answer fuzz
// @namespace https://greasyfork.org/users/22981
// @license MIT
// ==/UserScript==

/// While the load more button exists, load more

let tryCounter = 1
console.log('script running')
interval_documentHidden = setInterval(function checker() {
  if (!document.hidden) {
    if (document.readyState === 'complete') {
      try{
        let scripts = document.getElementsByTagName('script');
        [].forEach.call(scripts, el => {
          if (el.src.includes('setSlug')) {el.remove();let found = true;console.log('found slug')}
        });
        let fuzz = document.querySelectorAll('[class*="b1sa2ccx"');
        [].forEach.call(fuzz, el => {
          el.classList.remove('b1sa2ccx') 
        });
      if (found = true) {console.log('script exiting');clearInterval(interval_documentHidden)}
    }
    catch{
      console.log('Waiting for elements to load. Try #'+tryCounter)
      tryCounter++;
      if (tryCounter > 5){
        console.log('Quizlet fuzz remover-Something wrong happened.')
        clearInterval(interval_documentHidden)}
    }
    }
  }
}, 1000);