南宁师范大学教务系统一键评教

2021/7/2下午11:58:16

// ==UserScript==
// @name        南宁师范大学教务系统一键评教 
// @namespace   Violentmonkey Scripts
// @match       http://jw.nnnu.edu.cn/jsxsd/xspj/*
// @grant       none
// @version     1.4
// @author      -
// @description 2021/7/2下午11:58:16
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...

  var url = window.location.href.slice(0,45);
  
  if (url == "http://jw.nnnu.edu.cn/jsxsd/xspj/xspj_list.do") {
    var table = document.querySelector("#dataList > tbody");
    var oprate = $(table).find("a");
    for(var i=0; i<oprate.length; i++) {
      if(oprate[i].textContent.replace(/\s*/g,"") == '评价') {     //如果可以评价才可执行
        oprate[i].click();
      }
    }
  }
  
  if (url == "http://jw.nnnu.edu.cn/jsxsd/xspj/xspj_edit.do") {

    window.confirm = function () {     //去除确认框
      return true;
    };
    
    var questions = $("[name='zbtd']");
    for(var i=0; i<questions.length; i++){
      $(questions[i]).find(".icon-radio")[0].click();    //执行点击操作
    }
    document.querySelector("#tj").click();               //提交
  }
  
})();

QingJ © 2025

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