Quizlet fuzz remover

Remove all flashcard answer fuzz

当前为 2024-09-18 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name     Quizlet fuzz remover
// @version  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) {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);