您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
在教务系统的教师评价界面,自动填写全部下拉菜单为很好
// ==UserScript== // @name CUG研究生系统自动评价 // @namespace http://your-namespace.com // @version 2.0 // @description 在教务系统的教师评价界面,自动填写全部下拉菜单为很好 // @match https://epo.cug.edu.cn/Gstudent/* // @grant none // ==/UserScript== (function() { 'use strict'; // Function to select the "很好" option function selectRatingOption() { var dropdowns = document.querySelectorAll('select[id^="ctl00_contentParent_dgData"]'); for (var i = 0; i < dropdowns.length; i++) { var dropdown = dropdowns[i]; dropdown.value = "90"; // Select the "很好" option (value="90") } } // Wait for the table to load, then select the rating option var observer = new MutationObserver(function(mutations) { var table = document.getElementById('ctl00_contentParent_dgData'); if (table) { selectRatingOption(); observer.disconnect(); } }); observer.observe(document, { childList: true, subtree: true }); })();