腳本已歸檔
該腳本已經被作者歸檔,腳本可能失效並且作者不再維護,你無法再進行問題反饋。
// ==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)
}