您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
自动点击第一个选项,适用于合肥工业大学教务系统
当前为
// ==UserScript== // @name 合工大自动评教 // @namespace http://tampermonkey.net/ // @version 1.0.0 // @description 自动点击第一个选项,适用于合肥工业大学教务系统 // @author _Grayblue_ // @match http://jxglstu.hfut.edu.cn/eams5-student/for-std/lesson-survey/start-survey/* // @grant none // ==/UserScript== ;(function () { 'use strict' //是否自动提交,是则设为1,否设为0 var ok = 0 //等候两秒,网比较差可以延长时间 setTimeout(function () { check() }, 2000) if (ok == 1) { $('body').prepend('<label>自动提交开启</label>') } else { $('body').prepend('<label>自动提交关闭</label>') } //单选非常满意 function check() { for (var i = 0; i < document.querySelectorAll('[aria-required=true][type=radio]').length; ) { document.querySelectorAll('[aria-required=true][type=radio]')[i].checked = true i += 1 } if (ok == 1) { document.querySelector('#save-button').click() } } })()