// ==UserScript== // @name 破解无限debugger // @namespace https://github.com/qianjiachun // @version 0.0.1 // @description 用于破解网页无限debugger // @author 小淳 // @match *://*/* // @include *://*/* // @run-at document-start // @license MIT // @downloadURL none // ==/UserScript== var constructorHook = constructor; Function.prototype.constructor = function(s) { if (s == "debugger") { return function() {} } return constructorHook(s); }