UPDATE 2 It seems that starting today, uBlock Origin is working to combat this Youtube Block. Mine started working again! Lets all thank the devs of UBO for fighting this fight!

UPDATE So as new info comes out, I’ll be posting it here. It seems as if this Rollout Has Several Parts.

Part 1

You get a popup message over top of your video, blocking the screen:

  • This is the first sign. If you see this popup AND are logged into a YouTube account, your account has been selected.
  • At this stage you can likely close or block these messages with an adblocker.

Part 2

This message will change, indicating that you have 3 remaining videos to watch without ads.

Will insert photo once one has been found

  • At this stage your adblocker will imminently stop working in 3 videos time.
  • Personally using Firefox + uBlock Origin and tweaking filters and updates does not even fix it.

Part 3

None of the video loads now, everything looks blank.

  • At this stage you must tred new ground to avoid ads. I have posted methods in the comments. If you want to bypass this end page, read down there.

End of Update


YouTube has started rolling out anti-adblock to users inside the United States, which means that they are preparing to roll this out to the entire country. Personally, I have been blocked already. I want to gauge how common this occurrence is.

You are viewing a single thread.
View all comments
108 points
*

I’m going to start a discussion in the comments here about methods to bypass the message. I will add suggestions here, so leave comments if you find a method!

Methods to bypass Youtube Anti-Adblock:

  • The easiest method is simply to comply and turn off your adblock extension.

My Method

  • My method, and the one that will likely work universally is as follows:

Install Extension Enhancer for YouTube™

Go to the extensions settings and ensure that under the Ads Management section, “Block Ads” is turned OFF

Now find the Custom Script box at the very bottom and enter the following script. I did not write this code, it comes from egaudette on GitHub

(function() {
    'use strict';
    var clickInterval = setInterval(skipAds, 5);
    var ytpAdModule;
    var miniAdd;
    var skipButton;
    var currentVideo;

    function skipAds() {
        ytpAdModule = document.querySelector('.ytp-ad-module');
        skipButton = document.querySelector('button[class*="ad-skip"]');
        miniAdd = document.querySelector('.ytp-ad-overlay-container');

        if (ytpAdModule !== null && ytpAdModule.innerHTML !== '') {
            ytpAdModule.style.display = 'none';
        }

        if (skipButton !== null) {
            skipButton.click();
            return;
        }

        currentVideo = document.querySelector('video[class*="main-video"]')
        if (currentVideo !== null && currentVideo.duration <= 5) {
            currentVideo.muted = true;
            currentVideo.play();
            currentVideo.currentTime = currentVideo.duration;
        }
    }
})();

Lastly, ensure the “Automatically execute the script when YouTube is loaded in a tab” box is checked, and press Save


I’ll add more methods as they are discovered!

permalink
report
reply
22 points

Why would this work when others get blocked? Is it a novel way to block YT ads that’s not popular? Because I think YT isn’t looking for specific extensions but looking for certain kinds of behavior.

permalink
report
parent
reply
60 points

This method lets ads load for half a second but then get skipped instantly. i have not personally found a way to 100% block ads once ive gotten their block page.

permalink
report
parent
reply
2 points

I use greasemonkey to do a similar trick with the skip and dismiss buttons. But added random delays up to 2 seconds in an attempt to mimic a human clicking the button.

Also instead of an interval running, you can use MutationObserver and a callback to only run the code when the DOM changes and adds the button.

permalink
report
parent
reply
1 point
Deleted by creator
permalink
report
parent
reply
4 points

Please note that posting the script has html-encoded && <> and similar characters so you’ll have to replace those with the correct ones (or just get the script from GitHub)

permalink
report
parent
reply
1 point

Thank you, thank you, thank you, thank you!!! ❤️

permalink
report
parent
reply

Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ

!piracy@lemmy.dbzer0.com

Create post
⚓ Dedicated to the discussion of digital piracy, including ethical problems and legal advancements.

Rules • Full Version

1. Posts must be related to the discussion of digital piracy

2. Don’t request invites, trade, sell, or self-promote

3. Don’t request or link to specific pirated titles, including DMs

4. Don’t submit low-quality posts, be entitled, or harass others



Loot, Pillage, & Plunder

📜 c/Piracy Wiki (Community Edition):


💰 Please help cover server costs.

Ko-fi Liberapay

Community stats

  • 3.7K

    Monthly active users

  • 3.4K

    Posts

  • 79K

    Comments