脚本已归档
该脚本已经被作者归档,脚本可能失效并且作者不再维护,你无法再进行问题反馈。
// ==UserScript==
// @name 智慧树反异常检测/反闭包
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author LiHengDao
// @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 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)
}