brave/brave-browser

Experimental adblock filter list for risky rules

Closed this issue · 4 comments

We'd like to test out risky filter rules before releasing widely. Even after QA, we can't capture all cases of rule-related breakage, especially on fast-moving and complex websites like YouTube. We currently don't have a way of restricting filter rule rollout by channel i.e. we can't say that a filter rule should only get applied in Nightly or Beta as opposed to Release.

As a workaround, we could have an experimental/risky adblock list/component that:

  1. Would be default on in Nightly and Beta channels
  2. Would be default off in Release, but users will be able to easily opt-in via brave://adblock

This way, we can put in risky adblock rules into this list and try them out in Nightly and Beta, and if everything looks good for a while, we can manually copy them over to the respective adblock list/component that would get sent out to all channels.

When putting in rules to the experimental list, we should make sure to tag @brave/qa-team since by definition these are risky rules that might affect QA testing.

Work Plan:

  1. Test filter for youtube; A modification from the previous filter that caused issues. Something worthy to test

||googlevideo.com/videoplayback*ctier=L&*%2Cctier%2C from AdguardTeam/AdguardFilters#172976

Could be safe, but I wasn't willing to test again on the possible breakages, given the recent history of the similar filter rule.

  1. Another test regarding news.google.com "choppy scroll issues": https://community.brave.com/t/brave-slow-choppy-scrolling-in-google-news/529436/22

Another set of rules worth testing

www.youtube.com##+js(trusted-replace-fetch-response, /"auxiliaryUi":\{"messageRenderers":\{"bkaEnforcementMessageViewModel.*?e\}\}\}\,/, , player?)
www.youtube.com##+js(trusted-replace-fetch-response, /("trackingParam":"kx_fmPxhoPZR)[-_0-9A-Za-z]{150}[-_0-9A-Za-z]+?([-_0-9A-Za-z]{43}BwOcCE59TDtslLKPQ-SS"\})/, $1$2, player?)
www.youtube.com##+js(trusted-replace-xhr-response, /"auxiliaryUi":\{"messageRenderers":\{"bkaEnforcementMessageViewModel.*?e\}\}\}\,/, , player?)
www.youtube.com##+js(trusted-replace-xhr-response, /("trackingParam":"kx_fmPxhoPZR)[-_0-9A-Za-z]{150}[-_0-9A-Za-z]+?([-_0-9A-Za-z]{43}BwOcCE59TDtslLKPQ-SS"\})/, $1$2, player?)

Already added to AG by AdguardTeam/AdguardFilters#172178 and we will eventually add to uBlock filters, just unsure whether yt is no more watching us.

||googlevideo.com/videoplayback*ctier=L&*%2Cctier%2C was added to uBf by uBlockOrigin/uAssets@73a8660 to hopefully mitigate alleged ads slip which we can't figure out yet. Maybe complementary cosmetic can be moved to EL, but no need to hurry up.

The Experimental list was turned on in Nightly and Beta via Griffin: https://github.com/brave/brave-variations/blob/production/seed/seed.json#L2597, closing this out.