SafariConverterLib
SafariConverterLib copied to clipboard
Add support for `redirect` and `removeparam` rules
trafficstars
Check the explanation here: https://github.com/AdguardTeam/AdGuardForSafari/issues/770#issuecomment-1381471076
This way we can:
- Add "AdGuard URL Tracking filter" to AdGuard for iOS
- The
redirectandremoveparamrules both should be based on theredirecttype of dNR rules and can then be applied via AdGuard's Web Extension. - We should eventually switch AG for Safari to Web Extension as well.
Here's how we can do that:
- Convert
$redirectand$removeparamrules to DNR syntax - Apply them via Web Extension on iOS
- The problem: in this case
$redirectwill NOT have priority over blocking rules.
3. The problem: in this case
$redirectwill NOT have priority over blocking rules.
maybe whitelisting target URL in CBs will help, when exists a redirect rule for that URL?
maybe whitelisting target URL in CBs will help, when exists a redirect rule for that URL?
Automatic whitelisting? We could try that, but it's a bit risky and I'd better do it as a separate task after this one is done.