您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
用于西工大自动评教
当前为
// ==UserScript== // @name 西工大自动评教系统 // @namespace http://tampermonkey.net/ // @version 0.1 // @description 用于西工大自动评教 // @author Tuziii // @match http://us.nwpu.edu.cn/eams/teach/quality/stdEvaluate* // @grant none // ==/UserScript== var setting={ isAuto : 0, //是否自动提交 anstext : "无", //建议填写 ops : 0 //全为非常满意 }; function turnIt(){ var elem = document.getElementsByClassName("eval"); if(elem.length>0) { elem[0].click(); } else { alert("已完成评教"); } } function subIt(){ var anstext=setting.anstext; var elems = document.getElementsByTagName("input"); var text = document.getElementsByTagName("textarea"); var sub = document.getElementById("sub"); console.log(elems[0]); setTimeout(function (){ for(var i=setting.ops;i<elems.length;i+=5) { elems[i].click(); } text[0].value=anstext; },1000); if(setting.isAuto==1) { setTimeout(function (){ confirm=function(){return 1}; },1500); } setTimeout(function (){ sub.click(); },1500); } ( function() { 'use strict'; var currentURL = window.location.href; if(currentURL.match("innerIndex.action")!=null) { turnIt(); } if(currentURL.match("answer.action")!=null) { subIt(); } } )();