Greasy Fork 还支持 简体中文。

林科大教务处自动评教

自动完成评教表单(略微加快评教速度)。

目前為 2023-04-10 提交的版本,檢視 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         林科大教务处自动评教
// @namespace    http://tampermonkey.net/
// @version      0.4
// @description  自动完成评教表单(略微加快评教速度)。
// @author       LayneH
// @include      http://jwgl.csuft.edu.cn/jsxsd/xspj/xspj_edit.do*
// @include      http://jwgl.webvpn.csuft.edu.cn/jsxsd/xspj/xspj_edit.do*
// http://jwgl.webvpn.csuft.edu.cn/jsxsd/xspj/xspj_list.do?
// @icon         https://jwc.csuft.edu.cn/favicon.ico
// @grant        none
// @license MIT
// ==/UserScript==
(function(){
  const text='老师认真负责,讲课精神饱满,有感染力,能吸引学生的注意力。讲述内容充实,信息量大,能反映或联系学科发展的新思想、新概念、新成果。'
  const trCount = document.querySelector('#table1 tbody').childElementCount

  // window.confirm  = ()=>{return true}
  const s = document.createElement('script');
  s.innerHTML = "confirm= function(){return true;};alert = function(){};"
  document.body.appendChild(s)

  for (let i = 0; i < trCount - 2; i++) {
      document.querySelector(`#table1 tbody tr:nth-child(${i+2}) td:nth-child(2)`).children[2 * (i % 2)].checked = 'checked'
  }
  document.querySelector('textarea').value =text
  document.querySelector('#tj').click()
  setTimeout(function (){
    parent.window.close();
   }, 100);
})();