js hook debugger

var _constructor = constructor;

Function.prototype.constructor = function(s) {

                if (s == "debugger"){
                        return function(){};
                }
       return _constructor(s);
}
原文地址:https://www.cnblogs.com/angdh/p/14865631.html