Quizlet Learn

Highlight the correct answer

  1. // ==UserScript==
  2. // @name Quizlet Learn
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Highlight the correct answer
  6. // @author pigPen6969
  7. // @match *quizlet.com/*/learn
  8. // @icon https://www.google.com/s2/favicons?domain=quizlet.com
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12.  
  13. (function() {
  14. 'use strict';
  15. var trms = []
  16. let i=0
  17. for (let o of Quizlet.assistantModeData.studiableData.studiableMediaConnections){
  18. if (i%2 == 0){
  19. trms.push([o.text.plainText])
  20. }else{
  21. trms[trms.length-1].push(o.text.plainText)
  22. }
  23. i++
  24. }
  25. setInterval(function(){
  26. try{
  27. let d = document.querySelector("div.FormattedText.notranslate")
  28. if (d != null){
  29. let t = d.getAttribute("aria-label");
  30. let ret = "";
  31. for (let tmr of trms){
  32. if (tmr[0]==t){
  33. ret = tmr[1];}
  34. if (tmr[1] == t){
  35. ret = tmr[0];}
  36. for (let tmr of document.querySelectorAll(".wbkjose")){
  37. if (tmr.children[1].textContent == ret){
  38. tmr.style.backgroundColor = "blue"
  39. }
  40. }
  41. }
  42.  
  43. }
  44. }catch(e){}
  45. }, 100);
  46. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址