让你可以调试文心一言不让debugger的插件
// ==UserScript== // @license MIT // @name 屏蔽文心一言debugger的神器 // @namespace http://tampermonkey.net/ // @version 0.2 // @description 让你可以调试文心一言不让debugger的插件 // @author xumengzi // @match https://yiyan.baidu.com/* // ==/UserScript== (function() { 'use strict'; const apply = Function.prototype.apply; Function.prototype.apply = function (thisArg, argsArray = []) { if (this.toString() === 'function anonymous(\n) {\ndebugger\n}') { return; } return this.call(thisArg, ...argsArray); }; })();