// ==UserScript== // @name 南京理工大学自动评教 // @namespace LordCasser // @version 0.2 // @description 对于评教只能用IE的BUG进行了修复,现在可以用任何浏览器进行访问.能自动选择 // @author LordCasser // @match http://202.119.81.113:9080/njlgdx/xspj/xspj_list.do* // @match http://202.119.81.113:9080/njlgdx/xspj/xspj_edit.do* // @match http://202.119.81.113:9080/njlgdx/kscj/cxbmxk_query* // @run-at document-end // @require https://code.jquery.com/jquery-1.12.4.min.js // @grant window.open // @grant replace // @grant window.location.pathname // @downloadURL none // ==/UserScript== $(document).ready(function(){ function replace_judge_href (){ var tmp = $("a[href]"); for(var i =12; i < tmp.length ;i++){ var t = $($("a[href]")[i]).attr("href"); t = t.replace("JsMod","window.open"); $($("a[href]")[i]).attr("href",t); } } function set_radios(){ var but = $(":radio"); for(var i=0;i