this post was submitted on 30 Jun 2023
424 points (100.0% liked)

Technology

37738 readers
50 users here now

A nice place to discuss rumors, happenings, innovations, and challenges in the technology sphere. We also welcome discussions on the intersections of technology and society. If it’s technological news or discussion of technology, it probably belongs here.

Remember the overriding ethos on Beehaw: Be(e) Nice. Each user you encounter here is a person, and should be treated with kindness (even if they’re wrong, or use a Linux distro you don’t like). Personal attacks will not be tolerated.

Subcommunities on Beehaw:


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS
 

Whelp, here we go again

you are viewing a single comment's thread
view the rest of the comments
[–] nicerdicer@feddit.de 57 points 1 year ago (4 children)

Someone in the Fediverse (I don't know where and who) posted that you have to add the following filters into U-Block Origin. When done you shouldn't see any anti-adblock-warnings :

youtube.com##+js(set,yt.config_.openPopupConfig.supportedPopups.adBlockMessageViewModel,false)

youtube.com##+js(set,Object.prototype.adBlocksFound,O)

youtube.com##+js(set,ytplayer.config.aras.raw_player_response.adPlacements,[])

youtube.com##+js(set,Object.prototype.hasAllowedlnstreamAd,true)

I might add that I haven't experienced any anti-adblock-warnings yet, but I added these filters in advance. I might be worth a shot!

[–] TooLikeTheNope 21 points 1 year ago* (last edited 1 year ago) (1 children)

Also or just use a front-end like as Piped (https://github.com/TeamPiped/Piped) or Invidious (https://github.com/iv-org/invidious)

A handy externsion of FIrefox wil automatically redirects you, see https://addons.mozilla.org/en-US/firefox/addon/libredirect/

[–] nicerdicer@feddit.de 3 points 1 year ago

Thank you! I was aware of Invideous and I tried that in the past. However, Invideous-redirected videos always seemed to be slow, then disconnected or I experienced buffering. I'll give the firefox extension for libdirect a try. I tested it and it seems to work flawlessly.

[–] aaron@lemm.ee 8 points 1 year ago (1 children)

I'm sure it hides the warnings, but it certainly doesn't prevent you from being blocked..

[–] Manticore 10 points 1 year ago

They're not just hiding the warning popup, they're updating the Javascript for the variables that trigger them. We're temporarily blocked from content if we continue to leave our adblocker on, which is why:

  • The first one disables the warning popup's trigger (view is false)
  • the second tells YT there are no adblockers (blocks found 0)
  • the third defines an array of where ads are placed in the video (at the following timestamps:      ...aka nowhere)
  • the fourth tells YT that instream ads have been allowed

These are the js variables that YT is using to tell if you're using an adblocker in the first place. When Youtube tells us we have to disable our adblocker or it will block us, we just put on Marx glasses and tell them we did.

Youtube's method will still work on the majority of adblocker users that just use the addon without customising it (or updating it for public filters), so it will work for them. But it doesn't have to work on us.

[–] pandaontoast 5 points 1 year ago

Nice! Im gonna throw these in. I havent had any warnings yet either but the experience of using the official YT site/app without some kind of blocker is horrendous.

[–] iwnw7@lemm.ee 2 points 1 year ago

I saw it posted here, can't find the Tumblr post in the screenshot though https://lemmy.ml/comment/1053596