SIGN IN SIGN UP
gorhill / uBlock UNCLAIMED

uBlock Origin - An efficient blocker for Chromium and Firefox. Fast and lean.

0 0 67 JavaScript

[mv3][safari] Expand `requestDomains` rules into multiple `urlFilter` rules

Related issue:
https://github.com/uBlockOrigin/uBOL-home/issues/628

WebKit content blocking API doesn't support the equivalent of
DNR's `requestDomains` condition. Safari transparently does the
conversion of DNR's `requestDomains` array into pattern-based
rules.

However doing so hides the real cost of rule numbers. Thiis commit
take care of expanding most `requestDomains` properties into
multiple pattern-based `urlFilter` rules, such that it become clearer
how many rules uBOL requires for the currently enabled rulesets.

This way a user will become more aware of Safari rule count
limitations (max 150,000 rules) and accordingly more carefully
select which rulesets should be enabled.
R
Raymond Hill committed
82f87420d22ec5c5919f1b2dfe271982a5855f3c
Parent: e7971e6