# therealjoelmatic/removeadblockthing

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/therealjoelmatic-removeadblockthing).**

6,001 stars · 325 forks · JavaScript · MIT · archived

## Links

- GitHub: https://github.com/TheRealJoelmatic/RemoveAdblockThing
- Homepage: http://joelmatic.com/
- awesome-repositories: https://awesome-repositories.com/repository/therealjoelmatic-removeadblockthing.md

## Topics

`adblock` `remove-not-allowed` `tampermonkey` `tampermonkey-userscript` `undetected` `youtube` `youtube-adblocker`

## Description

RemoveAdblockThing is a browser extension that removes YouTube's adblock detection popup and skips video ads without triggering the platform's anti-adblock systems. It is designed to maintain an uninterrupted viewing experience by eliminating the intrusive "Ad blocker are not allowed on YouTube" message and automatically bypassing ad detection mechanisms.

The extension works by injecting a content script at document_start to intercept and modify page behavior before YouTube's ad detection scripts run. It uses a DOM MutationObserver to monitor the YouTube DOM for ad-related elements and detection popups, removing them instantly. Additionally, it injects custom CSS rules to hide ad detection popups and overlay elements, intercepts and blocks specific JavaScript event listeners that YouTube uses to detect adblocker presence, and patches YouTube's runtime scripts by replacing or removing functions responsible for adblock detection logic.

The tool also processes DOM mutations asynchronously to avoid blocking the main thread, removes specific DOM elements identified by class names or selectors without affecting video playback, and uses browser storage to persist user settings and detection bypass state across page navigations and sessions. It skips video ads automatically when the player is blocked for an undetected ad-free experience, without triggering the video player's detection and blocking mechanisms.

## Tags

### Security & Cryptography

- [YouTube Adblock Detection Bypass Extensions](https://awesome-repositories.com/f/security-cryptography/adblock-detection-bypasses/youtube-adblock-detection-bypass-extensions.md) — Removes YouTube's adblock detection popup and skips ads without triggering anti-adblock systems.
- [YouTube Adblock Detection Popup Removals](https://awesome-repositories.com/f/security-cryptography/adblock-detection-bypasses/youtube-adblock-detection-popup-removals.md) — Eliminates the intrusive 'Ad blocker are not allowed on YouTube' message for uninterrupted viewing. ([source](https://cdn.jsdelivr.net/gh/therealjoelmatic/removeadblockthing@main/README.md))
- [Adblock Detection Bypasses](https://awesome-repositories.com/f/security-cryptography/adblock-detection-bypasses.md) — Removes YouTube's adblock detection popup and skips ads without triggering blocking mechanisms.
- [DOM Element Selector-Based Removals](https://awesome-repositories.com/f/security-cryptography/application-and-system-security/browser-security/content-filtering-blocking/content-filtering/interactive-element-removers/dom-element-selector-based-removals.md) — Removes specific DOM elements identified by class names or selectors without affecting video playback.

### Graphics & Multimedia

- [Video Ad-Skippers](https://awesome-repositories.com/f/graphics-multimedia/video-ad-skippers.md) — Skips YouTube video ads without triggering adblock detection and blocking. ([source](https://cdn.jsdelivr.net/gh/therealjoelmatic/removeadblockthing@main/README.md))
- [Adblock Detection Workarounds](https://awesome-repositories.com/f/graphics-multimedia/video-downloaders/youtube-media-consumption/youtube-video-embeddings/adblock-detection-workarounds.md) — Keeps the YouTube video player usable by bypassing adblock detection warnings.

### User Interface & Experience

- [YouTube](https://awesome-repositories.com/f/user-interface-experience/playback-controllers/youtube.md) — Skips video ads on YouTube without being detected by the platform's anti-adblock systems.
- [Ad Skipping Extensions](https://awesome-repositories.com/f/user-interface-experience/playback-controllers/youtube/ad-skipping-extensions.md) — Skips video ads on YouTube without being detected by the platform's anti-adblock systems.
- [Ad and Sponsor Blocking](https://awesome-repositories.com/f/user-interface-experience/video-players/ad-and-sponsor-blocking.md) — Skips YouTube ads without triggering the platform's detection and blocking mechanisms. ([source](https://github.com/therealjoelmatic/removeadblockthing))
- [Undetected Ad Skipping](https://awesome-repositories.com/f/user-interface-experience/video-players/ad-and-sponsor-blocking/undetected-ad-skipping.md) — Ships automatic ad skipping that bypasses YouTube's anti-adblock detection systems. ([source](https://github.com/therealjoelmatic/removeadblockthing))
- [Adblock Detection Event Listener Interceptions](https://awesome-repositories.com/f/user-interface-experience/native-event-listeners/event-listener-overrides/adblock-detection-event-listener-interceptions.md) — Intercepts and blocks JavaScript event listeners YouTube uses to detect adblocker presence.
- [Application CSS Overrides](https://awesome-repositories.com/f/user-interface-experience/third-party-client-styling/internal-css-overrides/application-css-overrides.md) — Injects custom CSS rules to hide YouTube's ad detection popups and overlay elements.

### Web Development

- [Content Script Injection Architectures](https://awesome-repositories.com/f/web-development/custom-page-frameworks/page-content-injections/script-injections/content-script-injection-architectures.md) — Injects a content script at document_start to intercept YouTube's ad detection scripts before they run.
- [DOM Mutation Observation](https://awesome-repositories.com/f/web-development/dom-mutation-observation.md) — Monitors the YouTube DOM for ad-related elements using a MutationObserver to react instantly.

### Programming Languages & Runtimes

- [Live CSS Override Injections](https://awesome-repositories.com/f/programming-languages-runtimes/on-the-fly-module-transpilers/live-css-override-injections.md) — Injects custom CSS rules to hide YouTube's ad detection popups and overlay elements.

### Testing & Quality Assurance

- [Runtime Method Patching](https://awesome-repositories.com/f/testing-quality-assurance/function-call-tracking/function-behavior-replacement/runtime-method-patching.md) — Patches YouTube's runtime scripts by replacing functions responsible for adblock detection logic.
