// ==UserScript== // @name 智慧树反异常检测/反闭包超级无敌噼里啪啦加强版 // @namespace http://tampermonkey.net/ // @version 0.2 // @description 智慧树反异常检测/反闭包超级无敌噼里啪啦加强版 // @author LiKeDao // @match https://onlineexamh5new.zhihuishu.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=zhihuishu.com // @grant none // @run-at document-start // ==/UserScript== let old=Element.prototype.attachShadow Element.prototype.attachShadow=function(...args){ args[0].mode='open' return old.call(this,...args) } let oldoriginFunction=window.originFunction window.originFunction={ FunctionToString:oldoriginFunction.FunctionToString, RegExpTest:oldoriginFunction.RegExpTest, AttachShadow:Element.prototype.attachShadow, } let oldset=window.setInterval let oldout=window.setTimeout window.setInterval=function(...args){ let err= new Error('大赦天下'); if(err.stack.indexOf('checkoutNotTrustScript')!==-1){ return } return oldset.call(this,...args) } window.setTimeout=function(...args){ let err= new Error('大赦天下'); if(err.stack.indexOf('checkoutNotTrustScript')!==-1){ return } return oldout.call(this,...args) }