This profile is from a federated server and may be incomplete. Browse more on the original instance.

Honse, (edited )

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

https://lemmy.dbzer0.com/pictrs/image/16230dc5-ade1-4c6a-b6f8-f0104a4b080d.png

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


<span style="color:#323232;">(function() {
</span><span style="color:#323232;">    'use strict';
</span><span style="color:#323232;">    var clickInterval = setInterval(skipAds, 5);
</span><span style="color:#323232;">    var ytpAdModule;
</span><span style="color:#323232;">    var miniAdd;
</span><span style="color:#323232;">    var skipButton;
</span><span style="color:#323232;">    var currentVideo;
</span><span style="color:#323232;">
</span><span style="color:#323232;">    function skipAds() {
</span><span style="color:#323232;">        ytpAdModule = document.querySelector('.ytp-ad-module');
</span><span style="color:#323232;">        skipButton = document.querySelector('button[class*="ad-skip"]');
</span><span style="color:#323232;">        miniAdd = document.querySelector('.ytp-ad-overlay-container');
</span><span style="color:#323232;">
</span><span style="color:#323232;">        if (ytpAdModule !== null &amp;&amp; ytpAdModule.innerHTML !== '') {
</span><span style="color:#323232;">            ytpAdModule.style.display = 'none';
</span><span style="color:#323232;">        }
</span><span style="color:#323232;">
</span><span style="color:#323232;">        if (skipButton !== null) {
</span><span style="color:#323232;">            skipButton.click();
</span><span style="color:#323232;">            return;
</span><span style="color:#323232;">        }
</span><span style="color:#323232;">
</span><span style="color:#323232;">        currentVideo = document.querySelector('video[class*="main-video"]')
</span><span style="color:#323232;">        if (currentVideo !== null &amp;&amp; currentVideo.duration &lt;= 5) {
</span><span style="color:#323232;">            currentVideo.muted = true;
</span><span style="color:#323232;">            currentVideo.play();
</span><span style="color:#323232;">            currentVideo.currentTime = currentVideo.duration;
</span><span style="color:#323232;">        }
</span><span style="color:#323232;">    }
</span><span style="color:#323232;">})();
</span>

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

https://lemmy.dbzer0.com/pictrs/image/10b997a8-0a72-4616-8155-0cdfc59d7b59.png


I’ll add more methods as they are discovered!

Honse,

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.

Honse,

This has not worked for me.

Honse,

No, im using Librewolf and i am blocked currently.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • KamenRider
  • TheResearchGuardian
  • KbinCafe
  • Socialism
  • oklahoma
  • SuperSentai
  • feritale
  • All magazines