学习通随堂测试隐藏答案
// ==UserScript==
// @name 学习通随堂测试隐藏答案
// @namespace https://bbs.tampermonkey.net.cn/
// @version 0.1.0
// @description 方便学习
// @author Mask
// @match https://mobilelearn.chaoxing.com/page/quiz/stu/studentQuestion?*
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Your code here...
var assess=setInterval(()=>{var a=document.querySelector("#answer_form > div > div");
if(a!=null){
clearInterval(assess);
var answer_div=document.querySelectorAll("div.answer-result-span.inlineBlock.color-green");
var i=0;
alert("开始隐藏答案");
for(i;i<answer_div.length;i++){
answer_div[i].style.visibility="hidden";
}
}else console.log("error");
},1000);
})();