Youtube ads are destroying Vivaldi



  • Unfortunately adding uBlock Origin filter lists to Vivaldi didn't work for me, and the main filter list from uBlock Origin broke ad blocking on YouTube altogether.



  • adblock.png

    So this is whats basically happening, whenever I open the tab for the first time im being shown a blank ad screen that i can skip (just like you would with a regular ad). Having used other browsers with a 3rd party adblock or even the built in opera adblock have never given me this issue. Autoplay seems to be unaffected (thank god) but since i open many tabs of different videos to watch for guides and such, this is definately an annoying issue. Is this a known issue? Should i just disable the built in adblock and use something like adblockplus?


  • Vivaldi Translator

    It's a known issue that happens to some people, probably due to YouTube testing some experimental changes to ads on some users. There is a longer discussion here: https://forum.vivaldi.net/topic/48913/youtube-ads-are-destroying-vivaldi/2?page=1

    Personally, I just use a Tampermonkey script which clicks "Skip ad" for me automatically to deal with this at the moment.


  • Moderator

    modedit merged threads.


  • Moderator

    This post is deleted!


  • @Komposten could you somehow provide that script youre using?


  • Vivaldi Translator

    @Ichidude

    // ==UserScript==
    // @name         YouTube - Skip Ads
    // @homepage     https://github.com/komposten
    // @namespace    http://tampermonkey.net/
    // @version      1.0
    // @description  Automatically click "Skip Ad" on YouTube
    // @author       Komposten
    // @match        http*://*.youtube.com/*
    // @match        http*://youtube.com/*
    // @grant        none
    // ==/UserScript==
    
    (function() {
      'use strict';
      var skipAdsInterval = setInterval(function() {
    	// "Skip ad" button
    	let skipAd = document.getElementsByClassName("ytp-ad-skip-button")[0];
    
    	if (skipAd && skipAd.parentNode) {
    	  skipAd.click();
    	}
      }, 100);
    })();
    

    It's a very basic loop that looks for the "Skip Ad" button ten times per second. Shouldn't really affect performance at all, though I'm sure there are more efficient ways of doing it. Regardless, it works quite well. If you disable the Vivaldi's ad blocker it will even skip ads before the "Skip Ad" button appears on screen. 😉



  • Working well so far indeed, thank you for this band-aid fix! 🙂



  • @GT500 said in Youtube ads are destroying Vivaldi:

    Unfortunately adding uBlock Origin filter lists to Vivaldi didn't work for me, and the main filter list from uBlock Origin broke ad blocking on YouTube altogether.

    It is not gonna work because Vivaldi does not support extended Ublock rules. Here is a recent rule in question that handles new Ad mechanism on YT

    ! https://github.com/easylist/easylist/issues/5112
    ! @@||youtube.com/get_video_info?*timedtext_editor$xhr,1p
    ! https://redd.it/ggcmkp https://redd.it/gx03e0
    youtube.com,youtube-nocookie.com##+js(json-prune, [].playerResponse.adPlacements [].playerResponse.playerAds playerResponse.adPlacements playerResponse.playerAds adPlacements playerAds)
    

    This prunes json data so YT never receives ad data and what to play. Vivaldi only can handle some basic AdBlock stuff, like blocking domain, specific content type from loading or CSS element. uBlock goes further.

    @Komposten You should clear interval when it is done.


  • Vivaldi Translator

    @Kein said in Youtube ads are destroying Vivaldi:

    @Komposten You should clear interval when it is done.

    If I only wanted to run it once I'd use setTimout. But I want to run it continuously since a single video may have multiple ads, or I might be watching/listening to a playlist.



  • Multiple video adds that appear in the middle of video stream with Vivaldi built-in ads blocker enabled? Do you have an example of such video? I've only seen it appearing at the start and never in the middle sine they are blocked.


Log in to reply
 

Looks like your connection to Vivaldi Forum was lost, please wait while we try to reconnect.