Greasy Fork 还支持 简体中文。

Global Anti-Debugger

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

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