您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
xtu评教满意度调查
// ==UserScript== // @name xtu满意度调查 // @namespace http://tampermonkey.net/ // @version 1.1 // @description xtu评教满意度调查 // @author D15h35 // @match http://jwxt.xtu.edu.cn/jsxsd/mydgl/* // @grant none // @require https://ajax.aspnetcdn.com/ajax/jquery/jquery-3.5.1.min.js // ==/UserScript== var $ = window.jQuery; if (location.pathname == "/jsxsd/mydgl/mydgl_listNew") { window.confirm = function () { return true; } window.alert = function () { return true; } console.log("test:" + location.pathname) var investigation = $("td:contains('未参与调查')"); if (investigation != null) { var wjdc = $("a:contains('问卷调查')"); wjdc.click(); } } else if (location.pathname === "/jsxsd/mydgl/ps_queryNew") { var radioList = $("input[id^='hiddenj1'][id$='radio1']"); var inputLList = $("input[id^='L1']"); var checkboxList = $("input[id^='hiddenN1'][id$='checkbox1']"); var inputRList = $("input[id^=R1]"); var edittextareaList = $("textarea[id^=T1]"); radioList.each(function (index, radio) { $(radio).attr("checked", true); }); inputLList.each(function (index, inputL) { $(inputL).attr("value", "无"); }); checkboxList.each(function (index, checkbox) { $(checkbox).attr("checked", true); index=index+1; $("#hiddenN1" + index + "checkbox2").attr("checked", true); }); inputRList.each(function (index, inputR) { $(inputR).attr("value", "无"); }); edittextareaList.each(function (index, edittextarea) { $(edittextarea).val("无"); }); var h = $(document).height() - $(window).height(); $(document).scrollTop(h); }