南信大学习通自动评教

南信大学习通自动评价,默认满分

  1. // ==UserScript==
  2. // @name 南信大学习通自动评教
  3. // @namespace http://tampermonkey.net/
  4. // @version v0.1
  5. // @description 南信大学习通自动评价,默认满分
  6. // @author 沧浪之水
  7. // @match https://newes.chaoxing.com/pj/newesReception/*
  8. // @icon https://bulletin.nuist.edu.cn/_upload/tpl/00/7a/122/template122/favicon.ico
  9. // @license MIT
  10. // @grant none
  11. // ==/UserScript==
  12. //默认开启了自动提交,把不喜欢的话自动提交下面的那行代码注释掉即可
  13.  
  14. (function() {
  15. 'use strict';
  16.  
  17. // 获取文档中的所有 input 元素
  18. let inputs = document.querySelectorAll("input");
  19.  
  20. // 遍历所有 input 元素,检查其 type 属性是否为 text
  21. for (let input of inputs) {
  22. if (input.type === "text") {
  23. // 该元素的 type 属性为 text
  24. input.value=10
  25. input.addEventListener("blur", () => {
  26. // 调用 parseIntssBlur() 函数
  27. parseIntssBlur(input);
  28. });
  29. }
  30. }
  31. // 获取提交按钮对象
  32. let button = document.querySelector(".botBtnBox a[onclick='save(2);']");
  33.  
  34. // 模拟点击
  35. button.click();
  36.  
  37. // 模拟提交
  38. document.querySelectorAll(".layui-layer-btn0")[0].click();
  39.  
  40. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址