Greasy Fork

Greasy Fork is available in English.

UCAS SEP教评系统自动填写

自动填写SEP教评系统。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         UCAS SEP教评系统自动填写
// @namespace    Yuankong11
// @version      0.1
// @description  自动填写SEP教评系统。
// @author       Yuankong11
// @include      http://jwxk.ucas.ac.cn/evaluate/evaluateTeacher/*
// @include      http://jwxk.ucas.ac.cn/evaluate/evaluateCourse/*
// ==/UserScript==

(function() {
    'use strict';
    let l = document.querySelectorAll('[name^="item_"][value="5"]');
    for(let i = 0; i < l.length; i++) {
        l[i].checked = true;
    }
    let t = document.querySelectorAll('textarea[name^="item_"]');
    for(let i = 0; i < t.length; i++) {
        let text = window.location.href.indexOf('evaluateTeacher') + 1 ?
              "治学严谨、备课充分、讲课认真、因材施教" : "课程与作业(包括作业、报告、测验测试、论文等)有助于我的能力的提高";
        t[i].innerText = text;
    }
    if (window.location.href.indexOf('evaluateCourse') + 1) {
        document.querySelectorAll('input[name^="radio_"]')[0].checked = true;
        document.querySelectorAll('input[name^="item_"][type="checkbox"]')[0].checked = true;
    }
})();