Skip to content

NullDev/YT-Anti-Anti-Adblock

Repository files navigation

YT Anti-Anti-Adblock

Greasy Fork Tampermonkey / Violentmonkey Greasemonkey GitHub closed issues Version Greasy Fork Rating

Simplistic user-script to remove YouTube's "Adblockers are not allowed" popup.


❓ What does it do?

It automatically closes the anti-adblock popups and un-pauses (or loads) the video for you.
Hopefully even fast enough so that you don't even notice 😸

  • It removes the closable "Ad blockers are not allowed on YouTube" popup.
  • It removes the closable three-strikes popup.
  • And it removes the non-closable "Ad blockers violate YouTube's Terms of Service".
  • It also supports playlists and timestamps and stuff.
  • Oh and the script auto updates. Which is neat. I guess.

Note: This is not a replacement for your Ad-Blocker.


✔️ Compatibility

This script has been tested and is compatible with the following extensions and userscripts:


❓ Why not use xyz?

Existing solutions either didn't work (e.g. a semi transparent window was still there and scrolling was disabled) or they were overkill (e.g. a complete youtube-only adblocker) or they only killed one type of popup.

Hence: ✨ YouTube Anti-Anti-Adblock ✨


📡 Installation

  1. Install Tampermonkey for your browser:

    Note: ViolentMonkey works too!

  2. Install the script:

    Click to install

    If the button doesn't work for some reason: click here.

🍴 You can also find the script on Greasy Fork!


💠 Feature requests & Issues

Feature request or discovered a bug? Please open an Issue here on GitHub.


:octocat: Contributors

Made with contrib.rocks.


💻 Development

If you're interested in helping out (thanks!):

  • Clone the repository: git clone https://github.com/NullDev/YT-Anti-Anti-Adblock.git
  • Open it in your favourite IDE
  • Install the dependencies for linting with npm i
  • Link the script in Tampermonkey

Basically, in your Tampermonkey dashboard you create a new script that looks like this:

// ==UserScript==
// @name           YouTube Anti-Anti-Adblock
// @name:de        YouTube Anti-Anti-Adblock
// @namespace      yt-anti-anti-adblock
// @version        1.2.2
// @description    Removes all the "ad blockers are not allowed on youtube" popups.
// @description:de Entfernt alle "Werbeblocker sind auf YouTube nicht erlaubt" popups.
// @author         NullDev
// @copyright      Copyright (c) 2023 NullDev
// @license        MIT
// @match          *://*.youtube.com/*
// @homepageURL    https://github.com/NullDev/YT-Anti-Anti-Adblock
// @supportURL     https://github.com/NullDev/YT-Anti-Anti-Adblock/issues/new/choose
// @icon           https://raw.githubusercontent.com/NullDev/YT-Anti-Anti-Adblock/master/icon.png
// @grant          none
// @run-at         document-idle
// @require        file://C:/Users/XXX/PATH/TO/REPOSITORY/YT-Anti-Anti-Adblock/yt-anti-anti-adblock.user.js
// ==/UserScript==

Pay attention to the // @require line and edit the path accordingly.

  • Windows: file://C:/.../...
  • Linux: file:///.../...

Note: Make sure you DO NOT provide a @updateURL and @downloadURL field!

Then make sure the Tampermonkey extension has permissions for file paths.
And finally, just code in your IDE and Tampermonkey will autoupdate it. (You need to reload YouTube though)

Now all thats left to do is grab an open issue and start coding. 😸


About

Simplistic user-script to remove YouTube's annoying "Ad blockers are not allowed on YouTube" popup.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published