长春大学全自动评教

长春大学评教专用系统

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

You will need to install an extension such as Tampermonkey to install this script.

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         长春大学全自动评教
// @namespace    http://tampermonkey.net/
// @version      1.2
// @description  长春大学评教专用系统
// @author       Pointer/[email protected]
// @match        http://cdjwc.ccu.edu.cn/jsxsd/xspj/*
// @license MIT
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// ==/UserScript==
var url = location.pathname;
var link = document.getElementsByClassName("Nsb_r_list Nsb_table")[0].getElementsByTagName("a");


//console.log(url);
if (url == '/jsxsd/xspj/xspj_find.do'){
    swal({
        title: "长春大学全自动评教系统",
        text: "本页面需要自己选择后面的评教会全自动进行\n Pointer/[email protected] \n 快加好友发红白感谢我吧!!!哈哈哈",
        icon: "success",
        button: "确认",
    });
}

if (url == '/jsxsd/xspj/xspj_list.do'){
    console.log(url);
    for(var i=0; i<link.length; i++){
        if(link[i].text=='评价'){
            link[i].click();
            setTimeout(() => location.reload(), 500);
        } 
    }
}
if(url == '/jsxsd/xspj/xspj_edit.do'){
    console.log(url);
    try{
        document.getElementById("pj0601id_1_2").click();
        for (var j=2;j<=10;j++)
        {
            var x="pj0601id_"+j+"_1";
            document.getElementById(x).click();
        }
    }catch(err){
        console.log(err)
        console.log(err.message);
    }
    document.getElementById('jynr').value='老师教学认真负责 我觉得非常好';
    //document.getElementById("tj").click();
    //saveData(this,'1')
    document.getElementById("issubmit").value = "1";
    document.getElementById("tj").disabled=false;
    document.getElementById("Form1").submit();
    setTimeout(() =>window.close(), 200);
}



function sleep(n) {
        var start = new Date().getTime();
        //  console.log('休眠前:' + start);
        while (true) {
            if (new Date().getTime() - start > n) {
                break;
            }
        }
        // console.log('休眠后:' + new Date().getTime());
    }



(function() {
    'use strict';

    // Your code here...

})();