Intro

This tricks will fix the YouTube ā€œAd blockers violate YouTube’s Terms of Serviceā€ warning on Brave browser and by using the uBlock Origin extension

Configure the uBlock Origin extension

  1. Remove all existing adblock extensions on your browser.
  2. Download the uBlock Origin extension forĀ ChromeĀ orĀ Firefox.
  3. If you’re on Chrome, click on the puzzle icon.
  4. Select ā€œuBlock Originā€ and click on the settings icon.

  1. Click on the ā€œMy filtersā€ tab.
  2. Copy and paste the following code:
www.youtube.com##.ytd-popup-container.style-scope > .ytd-enforcement-message-view-model.style-scope
www.youtube.com##tp-yt-paper-dialog.ytd-popup-container.style-scope > .ytd-popup-container.style-scope
www.youtube.com##.opened
www.youtube.com###container > .ytd-enforcement-message-view-model.style-scope
www.youtube.com##tp-yt-paper-dialog.ytd-popup-container.style-scope
www.youtube.com##+js(nano-stb, resolve(1), *, 0.001)
www.youtube.com##+js(set, yt.config_.EXPERIMENT_FLAGS.web_enable_ab_rsp_cl, false)
www.youtube.com##+js(set, yt.config_.EXPERIMENT_FLAGS.ab_pl_man, false)
www.youtube.com##+js(nano-stb, resolve(1), *, 0.001)
www.youtube.com##+js(set, yt.config_.EXPERIMENT_FLAGS.web_enable_ab_rsp_cl, false)
www.youtube.com##+js(set, yt.config_.EXPERIMENT_FLAGS.ab_pl_man, false)
||googlevideo.com/videoplayback$xhr,3p,method=get,domain=www.youtube.com

  1. Click on ā€œApply changesā€, try refreshing the page and watch some YouTube videos.

Reference


Ad-Block YouTube Brave Browser uBlock origin