您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
自动完成评教表单(略微加快评教速度)。
当前为
// ==UserScript== // @name 林科大教务处自动评教 // @namespace http://tampermonkey.net/ // @version 0.41 // @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); })();