Greasy Fork

来自缓存

Greasy Fork is available in English.

林科大教务自动评教

自动完成评教表单。

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

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

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         林科大教务自动评教
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  自动完成评教表单。
// @author       Max Cheng
// @include      http://jwgl.csuft.edu.cn/jsxsd/xspj/xspj_edit.do*
// @icon         https://www.google.com/s2/favicons?domain=csuft.edu.cn
// @grant        none
// @require      https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js
/* globals jQuery, $, waitForKeyElements */
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
    $(function(){
        pingjiao();
    });

    var text = '老师认真负责,讲课精神饱满,有感染力,能吸引学生的注意力。讲述内容充实,信息量大,能反映或联系学科发展的新思想、新概念、新成果。';

    function pingjiao(){
        var eventrs = $('#table1 tr:gt(0):even');
        var oddtrs = $('#table1 tr:gt(0):odd');
        eventrs.each(function(){
            $(this).children().last().children().eq(0).prop('checked','checked');
        });
        oddtrs.each(function(){
            $(this).children().last().children().eq(2).prop('checked','checked');
        });
        $('textarea').val(text);

        $('#tj').click();
    };
})();