浏览器F12关闭无限调试模式(无限debugger)代码

Function.prototype.__constructor_back = Function.prototype.constructor;
Function.prototype.constructor = function() {
if(arguments && typeof arguments[0]==='string'){
//alert("new function: "+ arguments[0]);
if("debugger" === arguments[0]){
//arguments[0]="console.log(\"anti debugger\");";
//arguments[0]=";";
return
}
}
return Function.prototype.__constructor_back.apply(this,arguments);
}

 直接在控制台输入即可
点赞

发表回复

电子邮件地址不会被公开。必填项已用 * 标注