Block ads in YouTube videos
Privacy Browser doesn't block ads in youtube videos. Opera Browser for android does, and firefox (with adblockers) on my pc does. Is it possible to make Privacy Browser also block these ads?
Updated by Soren Stoutner 12 months ago
- Tracker changed from Feature to Bug
- Assignee set to Soren Stoutner
I think the core of the problem is that Google is constantly changing the URLs that deliver the ads. Currently, Privacy Browser only updates the blocklists with new releases. There is a planned feature to allow for the automatic update of the blocklists.
My guess is that the issue will be resolved when that is in place, but I will leave this bug report open in case there is something else that is needed.
The following two feature requests could also be of interest to this issue:
Updated by Thomas Jensen 11 months ago
Updated by Soren Stoutner 11 months ago
You may be right. This could be a general deficiency in EasyList, instead of just a changing URL issue. I am unlikely to have the time to chase this down right now as I am spending all of my available time building Privacy Browser PC and won't have the time to investigate the root cause until Privacy Browser PC reaches feature parity with Privacy Browser Android. However, if you would like it done more quickly you can submit an bug to EasyList (or better yet, just describe the problem or submit the fix on their forum at https://forums.lanik.us/viewforum.php?f=62&sid=03362ad10a7f79f247f6a37545a115f0 which is their preferred method of communication) and test it out to make sure it works. Then it will flow into Privacy Browser the next time an update is released.
Updated by Soren Stoutner 10 months ago
- Subject changed from Blocking ads in youtube videos to Block ads in YouTube videos
- Priority changed from 3.x to 4.x
Specifically, these are the lines in the uBlock filters that do the trick:
youtube.com,youtubekids.com,youtube-nocookie.com##+js(json-prune, .playerResponse.adPlacements .playerResponse.playerAds playerResponse.adPlacements playerResponse.playerAds adPlacements playerAds) youtube.com,youtubekids.com,youtube-nocookie.com##+js(set, ytInitialPlayerResponse.adPlacements, undefined) youtube.com,youtubekids.com,youtube-nocookie.com##+js(set, playerResponse.adPlacements, undefined)
Additionally, the controls that Andorid's WebView provides in this regard are fairly limited, and it would likely not be possible to implement the uBlock specification. That restriction could change with the release of Privacy WebView in the 4.x series.
In the meantime, NewPipe (https://newpipe.net/) does a good job of playing videos from YouTube without showing the ads. If you have NewPipe set as your default YouTube player and visit a YouTube page in Privacy Browser, you can automatically open the video in NewPipe from the options menu by tapping Share > Open with App.