Coming to you soon...

fne8w2ah@lemmy.world to Mildly Infuriating@lemmy.world – 635 points –
134

You are viewing a single comment

I'm not sure if this works anymore but I saved this message a while back. If you get this pop-up then put this into your adblock custom rules and it should sort it out:

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

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

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

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

You're an angel. This is for ublock origin?

I believe it should work with any adblocker that lets you set custom rules but since adblocking still works for me I haven't tried this myself. Saved it from reddit like 3 months ago so I hope it's still relevant