this post was submitted on 29 Aug 2023
626 points (98.8% liked)

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

54772 readers
403 users here now

⚓ 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
Ko-fi Liberapay

founded 1 year ago
MODERATORS
 

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 comment's thread
view the rest of the comments
[–] Honse@lemmy.dbzer0.com 108 points 1 year ago* (last edited 1 year ago) (6 children)

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!

[–] farent@lemmy.scam-mail.me 4 points 1 year ago

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)

load more comments (5 replies)