SafariConverterLib
SafariConverterLib copied to clipboard
Support domain wildcards and domain regexes in Safari 18 or newer
trafficstars
See the explanation here: https://github.com/AdguardTeam/SafariConverterLib/issues/20#issuecomment-2532818732
We can use if-top-url (or even better - support if-frame-url in Safari 18) to support domain wildcards.
Rules that can be properly supported now:
||example.org^$domain=google.*||example.org^$domain=/.*\\.org/google.*##body[$domain=/.*\\.org/]##body
Important things to check
- Also check if it can be supported in Safari 17 just in case.
- Check that we don't mix
if-top-urlandunless-*