// ==UserScript== // @name remove Confirm frame // @name:zh-CN Confirm确认框取消 // @namespace http://tampermonkey.net/ // @version 0.1 // @description remove your Confirm frame // @author UaN // @match *://examsafety.nuist.edu.cn/* // @grant none // @downloadURL none // ==/UserScript== (function() { 'use strict'; let cf = window.confirm; window.confirm = function(...args){ if(args[0].indexOf("5分钟")>=0){ return true; }else{ return cf(...args) } } })();