南信大学习通自动评教

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

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         南信大学习通自动评教
// @namespace    http://tampermonkey.net/
// @version      v0.1
// @description  南信大学习通自动评价,默认满分
// @author       沧浪之水
// @match        https://newes.chaoxing.com/pj/newesReception/*
// @icon         https://bulletin.nuist.edu.cn/_upload/tpl/00/7a/122/template122/favicon.ico
// @license MIT
// @grant        none
// ==/UserScript==
//默认开启了自动提交,把不喜欢的话自动提交下面的那行代码注释掉即可

(function() {
    'use strict';

    // 获取文档中的所有 input 元素
let inputs = document.querySelectorAll("input");

// 遍历所有 input 元素,检查其 type 属性是否为 text
for (let input of inputs) {
  if (input.type === "text") {
    // 该元素的 type 属性为 text
      input.value=10
      input.addEventListener("blur", () => {
    // 调用 parseIntssBlur() 函数
    parseIntssBlur(input);
  });
  }
}
// 获取提交按钮对象
let button = document.querySelector(".botBtnBox a[onclick='save(2);']");

// 模拟点击
button.click();

// 模拟提交
document.querySelectorAll(".layui-layer-btn0")[0].click();

})();