您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
山大教务系统教学评价辅助工具,可以帮助快速选中 checkbox。理论上适用于所有强智教务系统。
当前为
// ==UserScript== // @name SDU 山东大学教学评价辅助 // @description 山大教务系统教学评价辅助工具,可以帮助快速选中 checkbox。理论上适用于所有强智教务系统。 // @namespace sdu_teaching_evaluate_tool // @version 0.0.2 // @author THFX // @supportURL https://github.com/THFX // @homepage https://gf.qytechs.cn/zh-CN/scripts/444446 // @license GPL-3.0 // @match https://bkzhjx.wh.sdu.edu.cn/jsxsd/framework/* // @icon https://www.sdu.edu.cn/favicon.ico // @grant none // @run-at document-end // ==/UserScript== /* 理论上适用于所有采用强智教务系统的学校, 请自行修改代码 请务必在进入评价界面后再点击按钮,否则无效 */ (function() { 'use strict'; // Main console.log("脚本已加载."); const button_text_s = ["开始填充教学评价","清除教学评价"]; var current_status = 0; create_button(); // 创建按钮 // Functions function create_button(){ var button = document.createElement("button"); button.id = "btn001"; button.textContent = button_text_s[0]; button.style.width = "110px"; button.style.height = "90%"; button.style.align = "center"; button.style.marginRight = "0.5%"; button.style.marginLeft = "-30%"; document.getElementsByClassName("top")[0].appendChild(button); button.onclick = function (){ console.log("点击了按钮."); current_status ^= 1; click_checkbox(); button.textContent = button_text_s[current_status]; }; } function click_checkbox(){ console.log("开始获取元素..."); var doc = document.querySelector(".box-content .iframeClass #Frame1").contentWindow.document; var inputs = doc.getElementById("table1").getElementsByTagName("input"); var checkboxArray = []; // 筛选 for(var i=0;i<inputs.length;i++){ var obj = inputs[i]; if(obj.id.endsWith("_1")){ checkboxArray.push(obj); } } console.log("开始操作 CheckBox ..."); var temp_status = Boolean(parseInt(current_status)); for(var j=0;j<checkboxArray.length;j++){ checkboxArray[j].checked = temp_status; } } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址