适用于长春大学教务系统(强智教务)的自动填写教师评价的脚本,不需要疯狂点击非常满意,延长鼠标寿命。
// ==UserScript==
// @name 长春大学教务系统自动填写教学评价
// @version 0.2
// @description 适用于长春大学教务系统(强智教务)的自动填写教师评价的脚本,不需要疯狂点击非常满意,延长鼠标寿命。
// @author KamabokoWen
// @include *://cdjwc.webvpn.ccu.edu.cn/jsxsd/xspj/*
// @include *://cdjwc.ccu.edu.cn/jsxsd/xspj/*
// @include *://*.webvpn.ccu.edu.cn/jsxsd/xspj/*
// @run-at document-start
// @grant unsafeWindow
// @grant GM_setValue
// @grant GM_getValue
// @license GNU_GPLv3
// @namespace https://greasyfork.org/users/843119
// ==/UserScript==
(function() {
var now_url = window.location.href;
var flag;
var isEdit;
if(now_url.indexOf("xspj_list.do")!=-1)
{
alert("自动填写教学评价脚本正常运行,点击评价后会自动提交!Coded by KamabokoWen");
}
window.onload = function auto_click_manyi(){
if(now_url.indexOf("xspj_edit.do")!=-1)
{
flag = document.getElementById("pj0601id_10_1");
isEdit = document.getElementById("tj");
if(isEdit!=null)
{
if(flag==null)
{
document.getElementById("pj0601id_1_1").click();
document.getElementById("pj0601id_2_1").click();
document.getElementById("pj0601id_3_1").click();
document.getElementById("pj0601id_4_1").click();
document.getElementById("pj0601id_5_2").click();
document.getElementById("issubmit").value = "1";
document.getElementById("Form1").submit();
}
else
{
document.getElementById("pj0601id_1_1").click();
document.getElementById("pj0601id_2_1").click();
document.getElementById("pj0601id_3_1").click();
document.getElementById("pj0601id_4_1").click();
document.getElementById("pj0601id_5_2").click();
document.getElementById("pj0601id_6_1").click();
document.getElementById("pj0601id_7_1").click();
document.getElementById("pj0601id_8_1").click();
document.getElementById("pj0601id_9_1").click();
document.getElementById("pj0601id_10_1").click();
document.getElementById("issubmit").value = "1";
document.getElementById("Form1").submit();
}
}
}
}})();