// ==UserScript== // @name Confirm确认框取消 // @name:zh-CN Confirm确认框取消 // @namespace http://tampermonkey.net/ // @version 1.0 // @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) } } })();