ELN评价

ELN自动评价

  1. // ==UserScript==
  2. // @name ELN评价
  3. // @namespace http://tampermonkey.net/
  4. // @version 2024-11-06
  5. // @description ELN自动评价
  6. // @author Damao
  7. // @match https://v4.21tb.com/els/html/studyCourse/studyCourse.enterCourse.do*
  8. // @icon http://10.2.71.24/favicon.ico
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. document.querySelector(".cs-eval-score input[value='5']").dispatchEvent(new MouseEvent("mouseover"));
  17. document.querySelector(".cs-eval-score input[value='5']").dispatchEvent(new MouseEvent("click"));
  18. document.querySelectorAll(".cs-item-single .cs-test-option:nth-of-type(1)").forEach(item => item.dispatchEvent(new MouseEvent("click")));
  19. document.querySelector(".cs-test-list .cs-question-item:nth-of-type(2) textarea").value = "无";
  20. document.querySelector(".cs-test-list .cs-question-item:nth-of-type(3) textarea").value = "无";
  21. document.querySelector(".cs-test-list .cs-question-item:nth-of-type(4) textarea").value = "希望继续参加";
  22. setTimeout(() => {
  23. document.querySelector(".cs-question-item").scrollIntoView({behavior: "smooth"});
  24. }, 2000);
  25. })();