Global Anti-Debugger

Removes and neutralizes any `debugger;` commands before the site runs them

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
FabioSmuu
日安装量
0
总安装量
16
评分
0 0 0
版本
1.0
创建于
2025-10-14
更新于
2025-10-14
大小
1.2 KB
许可证
MIT
适用于
所有网站

Global Anti-Debugger

A UserScript for contentReference that automatically removes the debugger command from web pages, preventing crashes or forced pauses when opening DevTools.

Ideal for developers analyzing sites with anti-inspection or anti-debug protections.


Features

  • Removes debugger; from inline and external scripts.
  • Neutralizes Function("debugger;") and eval("debugger;").
  • Acts before the scripts run (@run-at document-start).
  • Avoids forced breakpoints, crashes and common anti-debug protections.
  • Works on any website (*://*/*).

How it works

The script:

  • Intercept the construction of dynamic functions and eval to remove debugger.
  • Monitors mutations in the DOM (script injected after load) and cleans debugger before they run.
  • Removes optional semicolon — covers debugger with or without ;.

Example:

//Original
debugger;
Function("debugger;")();
eval("debugger");

**Thank you for your attention**