您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically click the first label under the class "group"
// ==UserScript== // @name 合工大自动评教(点开相应老师的评教页面自动评教,提交即可) // @namespace http://tampermonkey.net/ // @version 0.1 // @description Automatically click the first label under the class "group" // @author HFUT-BBYY // @match http://jxglstu.hfut.edu.cn/eams5-student/for-std/lesson-survey/start-survey/* // @grant none // @license MIT // ==/UserScript== (function() { function clickFirstInput() { const groups = document.querySelectorAll('div.group'); for (const group of groups) { const firstInput = group.querySelector('input[type="radio"]'); if (firstInput) { firstInput.click(); // 模拟点击第一个input标签 } } } // 使用定时器每隔1秒执行一次点击操作,可以根据需要调整时间间隔 setInterval(clickFirstInput, 1000); })();