您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
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(); })();