// ==UserScript== // @name 中原工学院-教学质量管理平台评教助手 // @namespace http://tampermonkey.net/ // @version 0.5 // @description 本脚本开发目的是解放双手!!搬的 // @author 源作者不知道是谁,我只修改 // @match https://zut.mycospxk.com/index.html* // @icon https://zut.mycospxk.com/logo.ico // @grant GM_getValue // @grant GM_setValue // @license GPL3.0 // @downloadURL https://update.greasyfork.icu/scripts/464948/%E4%B8%AD%E5%8E%9F%E5%B7%A5%E5%AD%A6%E9%99%A2-%E6%95%99%E5%AD%A6%E8%B4%A8%E9%87%8F%E7%AE%A1%E7%90%86%E5%B9%B3%E5%8F%B0%E8%AF%84%E6%95%99%E5%8A%A9%E6%89%8B.user.js // @updateURL https://update.greasyfork.icu/scripts/464948/%E4%B8%AD%E5%8E%9F%E5%B7%A5%E5%AD%A6%E9%99%A2-%E6%95%99%E5%AD%A6%E8%B4%A8%E9%87%8F%E7%AE%A1%E7%90%86%E5%B9%B3%E5%8F%B0%E8%AF%84%E6%95%99%E5%8A%A9%E6%89%8B.meta.js // ==/UserScript== (function() { 'use strict'; var itext=GM_getValue("itext", "1"); var icheckbox=GM_getValue("icheckbox", ""); var itextarea=GM_getValue("itextarea", "努力"); setTimeout(function(){ var myDiv = document.createElement("div"); myDiv.id = "my-script"; myDiv.innerHTML = "

ZUT自动评教

单选的选项:

" + "" + "

多选的选项:

" + "" + "

问答的回答:

" + "" + ""+ "

提醒:再次点击“一键填写”可取消选择

"; document.body.appendChild(myDiv); var css = "#my-script { position: fixed; top: 50%; left: 10%; z-index: 9999; " + "border: 1px solid #969fff; border-radius: 10px; padding: 20px; color: #333; }" + "#my-script input, #my-script button { border-radius: 5px; }"; var style = document.createElement("style"); style.type = "text/css"; style.appendChild(document.createTextNode(css)); document.head.appendChild(style); document.getElementById("input-text").value=itext; document.getElementById("input-checkbox").value=icheckbox; document.getElementById("input-textarea").value=itextarea; function setNativeValue(element, value) { const valueSetter = Object.getOwnPropertyDescriptor(element, 'value').set; const prototype = Object.getPrototypeOf(element); const prototypeValueSetter = Object.getOwnPropertyDescriptor(prototype, 'value').set; if (valueSetter && valueSetter !== prototypeValueSetter) { prototypeValueSetter.call(element, value); } else { valueSetter.call(element, value); } } document.getElementById("submit-button").addEventListener("click", function() { let radiogroup = document.querySelectorAll('div.ant-radio-group'); let checkboxroup = document.querySelectorAll('div.ant-checkbox-group'); let formitem = document.querySelectorAll('div.ant-form-item-control'); var inputText = document.getElementById("input-text").value; var inputCheckbox = document.getElementById("input-checkbox").value; var inputTextarea = document.getElementById("input-textarea").value; if(inputText){ GM_setValue("itext", inputText); for(var i = 0;iradioinput.length)inputText=radioinput.length+1; if(inputText-1<0)inputText=0+1; if(j==inputText-1)radioinput[j].click(); } } } if(inputCheckbox){ GM_setValue("icheckbox", inputCheckbox); let temp = inputCheckbox.split(" "); for(var ii = 0;ii