Daily Shaarli

All links of one day in a single page.

June 10, 2023

How to bypass YouTube's anti ad blocker prompt
It takes just a few lines of instructions to block the prompt on YouTube.

Users of the popular content blocker uBlock Origin need to open the uBlock Dashboard with a click on the uBlock Origin icon and the selection of the Dashboard icon in the interface that opens.

There, they need to switch to the My filters tab, paste the four lines into the text field and select apply changes to add the instructions to uBlock Origin.


Here is the code that you need (updated)

    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(json-prune, [].playerResponse.adPlacements [].playerResponse.playerAds)

    youtube.com,youtubekids.com,youtube-nocookie.com##+js(json-prune, playerResponse.adPlacements playerResponse.playerAds adPlacements playerAds, playerConfig)

    youtube.com,youtubekids.com,youtube-nocookie.com##+js(json-prune, auxiliaryUi.messageRenderers.enforcementMessageViewModel)

    youtube.com,youtubekids.com,youtube-nocookie.com##+js(set, ytInitialPlayerResponse.auxiliaryUi.messageRenderers.enforcementMessageViewModel, undefined)