您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
ELN自动评价
- // ==UserScript==
- // @name ELN评价
- // @namespace http://tampermonkey.net/
- // @version 2024-11-06
- // @description ELN自动评价
- // @author Damao
- // @match https://v4.21tb.com/els/html/studyCourse/studyCourse.enterCourse.do*
- // @icon http://10.2.71.24/favicon.ico
- // @grant none
- // @license MIT
- // ==/UserScript==
- (function() {
- 'use strict';
- document.querySelector(".cs-eval-score input[value='5']").dispatchEvent(new MouseEvent("mouseover"));
- document.querySelector(".cs-eval-score input[value='5']").dispatchEvent(new MouseEvent("click"));
- document.querySelectorAll(".cs-item-single .cs-test-option:nth-of-type(1)").forEach(item => item.dispatchEvent(new MouseEvent("click")));
- document.querySelector(".cs-test-list .cs-question-item:nth-of-type(2) textarea").value = "无";
- document.querySelector(".cs-test-list .cs-question-item:nth-of-type(3) textarea").value = "无";
- document.querySelector(".cs-test-list .cs-question-item:nth-of-type(4) textarea").value = "希望继续参加";
- setTimeout(() => {
- document.querySelector(".cs-question-item").scrollIntoView({behavior: "smooth"});
- }, 2000);
- })();