Open JaneJeon opened 3 years ago
An alternative method I'm thinking of is only using clearURLs for websites that won't automatically redirect you to the destination (e.g. youtube links, skimlinks, etc) - i.e. rawRules.
For "stripping" everything else, I think relying on existing UBO rulesets like https://github.com/uBlockOrigin/uAssets and https://github.com/AdguardTeam/FiltersRegistry/blob/master/filters/filter_17_TrackParam/filter.txt might be better?
Obviously UBO blocklists are 1. fucking huge and 2. do a LOT more than just "strip trackers from URLs", but preprocessing these lists by stripping off DOM-manipulating filters (or basically anything that doesn't touch the URL) and focusing on ones that are usually named "privacy" something should help.
In that case, I would need:
The motivation for skipping clearURLs for the actual tracker stripping is the existing clearURLs-based approach falls flat on obscure/chinese sites that don't provide any sort of "hints":
Resources for directly integrating UBO to strip bullshit from URLs:
Also I have been made aware that even the annoyances rulesets contain tracker stripping magic? https://github.com/uBlockOrigin/uAssets/blob/02d16a221c276fe58bdd72cc947b26eaf9d1318e/filters/annoyances.txt#L4560-L4561
Some of the rule semantics might change... or we might have to abandon tracker stripping entirely