zh-cn
// ==UserScript==
// @name sztu教务系统自动评教
// @namespace http://tampermonkey.net/
// @version 0.2
// @description zh-cn
// @author 2huo
// @match https://jwxt.sztu.edu.cn/jsxsd/framework/xsMain.htmlx
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// @license MIT
// ==/UserScript==
(function() {
'use strict';
// Your code here...
function find(){
let timer = setInterval(()=>{
var frame = document.getElementsByTagName("iframe")[1].contentDocument;
console.log(frame);
if(frame){
let table = frame.getElementById("table1");
if(table){
let list = table.querySelectorAll("td[name='zbtd']");
if(list){
console.log(list);
list[0].children[0].children[1].checked="checked";
for(let i = 1;i<list.length;i++){
list[i].children[0].children[0].checked="checked";
}
// clearInterval(timer);
}
}
else{
console.log("not found");
}
}else{
console.log("not found");
}
},2000);
}
find();
})();