Universal Stealth Mask & Anti-Adblock Defuser

Universal anti-adblock bypass for all browsers and adblockers without breaking HTML5, HLS, or DASH video streams. Compatible companion to Hide Web Elements Pro; also runs fully standalone.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

نووسەر
K T Z
Daily installs
7
Total installs
255
Ratings
1 0 0
وەشان
12.0
Created
2026-07-31
Updated
2026-08-29
Size
26.1 KB
مۆڵەت
MIT
Applies to
هەموو سایتەکان

Universal Stealth Mask & Anti-Adblock Defuser

A universal, lightweight anti-adblock bypass that works on virtually any site — without breaking HTML5, HLS, or DASH video playback.

Most "please disable your adblocker" walls work by probing the page for tell-tale signs that an ad slot didn't load: a zero-width ad container, a blocked ad-network request, a missing tracking cookie, a console warning. This script neutralizes those probes directly at the browser API level, so the detection script sees exactly what it expects to see — while the actual ad/tracker requests never go out.


🔗 Recommended to use together with

Hide Web Elements Pro

While Hide Web Elements Pro gives you manual control over hiding, freezing, and media extraction, Stealth Mask silently defeats anti‑adblock detection on thousands of sites. Together, they create a seamless, clean, and undetectable browsing experience.


Key features

  • Geometry spoofinggetBoundingClientRect, getClientRects, offsetWidth/Height, clientWidth/Height, scrollWidth/Height, and offsetParent all report plausible non-zero values for ad-slot elements, so "is the ad really showing?" checks pass.
  • getComputedStyle spoofing — ad containers always report display: block, visibility: visible, opacity: 1.
  • Network-layer interceptionfetch, XMLHttpRequest, and navigator.sendBeacon silently return a fake "success" response for ad/tracker requests instead of actually sending them. Video/HLS/DASH manifests and segments are always explicitly whitelisted and pass straight through untouched.
  • Tracking-pixel blocking — covers both new Image() pixels and plain <img src="..."> assignments, however the element was created.
  • Cookie filtering — strips only genuine adblock-detection cookies (e.g. adblock_detected, abp_status). Deliberately narrow, so it won't eat a site's own legitimate promo_code or banner_dismissed cookie.
  • Performance API filtering — blocked resources are hidden from both performance.getEntries() polling and live PerformanceObserver callbacks.
  • Global flag & library shims — defuses common detector globals (adblock, isAdBlockActive, canRunAds, etc.) and popular detection libraries (FuckAdBlock, BlockAdBlock, and similar).
  • Console & error-event suppression — adblock-detection warnings/errors are swallowed; your page's real console output is untouched.
  • Dynamic script & iframe removal — a MutationObserver strips detection scripts and iframes as they're injected, with the same video-safety whitelist applied.
  • Hyperlink-auditing removal — strips ping attributes from links so clicks aren't silently beaconed.
  • Native-code spoofing — every patched function still reports [native code] via Function.prototype.toString, so a probe that checks "is this function real?" before trusting it can't tell the difference.


What's new in v12.0

  • Rebuilt on direct unsafeWindow patching instead of injecting a <script> tag into the page. The old injection method is silently blocked by any site with a strict Content-Security-Policy — increasingly common — so this is a real reliability fix, not just a refactor.
  • Fixed over-broad cookie stripping. v11.x matched cookies against the same wide ad-keyword list used for URLs, which could delete a site's own legitimate cookies if their name happened to contain a word like "promo" or "banner". Cookie filtering is now a dedicated, narrow pattern that only targets actual adblock-detection cookies.
  • Full tracking-pixel coverage. The Image constructor was patched before, but a plain <img> element with its src set directly slipped through. Both paths are covered now.
  • PerformanceObserver support added alongside the existing performance.getEntries() filtering — several modern detection scripts watch resource timing live rather than polling.
  • Iframe removal added to the mutation observer, not just scripts.
  • Extended ad-network, CDN, and modern segment-format (cmfv/cmfa) lists.
  • Optional session + all-time blocked-request counter, viewable from the Tampermonkey menu ("📊 Show blocked count") — no on-page UI, so it won't clash visually with other scripts' panels.


Plays well with other scripts

This script exposes a small, inert bridge on window.__UADefuser (isBait(), isVideoResource(), getStats()) and fires a uadefuser:bait event whenever it blocks something, so other userscripts can hook into its detection logic instead of duplicating it. It does nothing if nothing listens, and the script is fully self-contained — it works exactly the same whether it's the only script installed or running alongside others.

Built and tested to run cleanly alongside Hide Web Elements Pro: both scripts patch the same low-level browser APIs (getComputedStyle, getBoundingClientRect, layout getters, Function.prototype.toString) using the same chaining pattern, so neither one clobbers the other's spoofing.


Permissions used

GrantWhy
unsafeWindowPatch browser APIs in the page's real context (also makes it CSP-proof)
GM_setValue / GM_getValuePersist the optional all-time blocked-request counter
GM_registerMenuCommandAdds the "Show blocked count" item to the Tampermonkey menu

No data ever leaves your browser. Nothing is sent anywhere — the counter is stored locally via your userscript manager's own storage.


FAQ


Will this break video playback?

No. Every network hook explicitly whitelists common video/streaming extensions (.m3u8, .mpd, .ts, .m4s, etc.), video-path patterns (/hls/, /dash/, /manifest/, etc.), and major video CDNs, and always lets those requests through untouched regardless of what else matches.




Does it hide/remove ads from the page?

No — this script only stops sites from detecting that ads were blocked. It doesn't touch page layout or CSS. Pair it with an actual element-hiding tool (such as Hide Web Elements Pro, or your adblocker's own filters) if you want ad slots visually removed too.




Is this safe to run on every site?

It's designed to fail safe — every hook is wrapped so a single unexpected page structure can't crash the script, and nothing is patched unless the relevant native API exists. That said, as with any script that intercepts network/DOM APIs, if a specific site misbehaves, try disabling it for that domain first to confirm.




Intended for personal browsing convenience and privacy. Respect the terms of service of sites you visit.