评教

qd

您需要先安裝使用者腳本管理器擴展,如 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.0
// @description  qd
// @author       droit
// @match        https://172-20-139-153-7700.webvpn.qqhru.edu.cn/student/teachingEvaluation/teachingEvaluation/evaluationPage
// @match        http://111.43.36.164/student/teachingEvaluation/teachingEvaluation/evaluationPage
// @match        http://172.20.139.153:7700/student/teachingEvaluation/teachingEvaluation/evaluationPage
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    var keyWord = ["(A)"];
    $(".ace").each(function(){
        var self = $(this);
        var text = $(this).next().next().html();
        keyWord.forEach(function(value){
            if(text.includes(value)) {
                self.click();
            }
        });
        console.log(text);
    });
    var content = "上课有热情,积极解决学生问题。"; // 自行修改填写
    $("#page-content-template > div > div > div.widget-content > form > div > table > tbody > tr:nth-child(25) > td > div > textarea").val(content);

    setTimeout(function() {
        $("#buttonSubmit").click();
        setTimeout(function() {
            $("#layui-layer1 > div.layui-layer-btn > a.layui-layer-btn0").click();
            console.log("我提交啦");
        }, 1370);
    }, 137001);
    function checkTimerEnd() {
        var minutes = parseInt(document.getElementById("RemainM").innerHTML);
        var seconds = parseInt(document.getElementById("RemainS").innerHTML);

        if (minutes === 0 && seconds === 0) {
            document.getElementById("RemainS").innerHTML = "0";
            flag = true;
            document.getElementById("js").remove();
            console.log("倒计时结束");
            $("#buttonSubmit").click();
        }
    }

    setInterval(checkTimerEnd, 1000);

})();