Global Anti-Debugger

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

作者
FabioSmuu
今日安裝
2
安裝總數
10
評價
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**

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址