您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
修复选课系统另行选择在 Chrome 和 Firefox 下无弹窗的问题
// ==UserScript== // @name SEU 选课页面兼容性修复 // @namespace http://xk.urp.seu.edu.cn/ // @version 0.1 // @description 修复选课系统另行选择在 Chrome 和 Firefox 下无弹窗的问题 // @author Raphael // @match http://xk.urp.seu.edu.cn/* // @grant none // ==/UserScript== $(function(){ if(window.showModalDialog === undefined){ //alert("初始化的时候,判断window.showModalDialog是否存在") window.showModalDialog = function(url,mixedVar,features){ window.hasOpenWindow = true; if(mixedVar) var mixedVar = mixedVar; if(features) var features = features.replace(/(dialog)|(px)/ig,"").replace(/;/g,',').replace(/\:/g,"="); window.myNewWindow = window.open(url,"_blank",features); } } });