三亚学院评教改

点每科的评价,自动点自动提交

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         三亚学院评教改
// @namespace    http://tampermonkey.net/
// @version      3.1
// @description  点每科的评价,自动点自动提交
// @author       hpf
// @match        http*://jwxt.sanyau.edu.cn/*
// @email        [email protected]
// @resource     https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js
// ==/UserScript==

(function() {
    $(function(){
       var table = document.getElementById("table1");
       //console.log(table);
       if(table!=null) {
          var input = table.getElementsByTagName("input");
          var rid = Math.floor(Math.random() * 3);//随机数

          var i = 0 ,
              num = 0;

          for(i = 0;i<30 ; i++){
            rid = Math.floor(Math.random() * 3)
            var j= num+rid;
            //console.log(j)
            if(!input[j].click()){
              input[j+1].click();
            }
            num=num+11;
          }
         /*for(var i= 0;i<input.length;i++){
           if(input[i].attr("onclick")!=undefined&&input[i].attr("onclick").length>0){
            input[i].click();
           }else{
            continue;
           }
         }*/

         //提交
         var bc = document.getElementById("tj");
         bc.click();
       }
  });
})();