SafariConverterLib icon indicating copy to clipboard operation
SafariConverterLib copied to clipboard

Support domain wildcards and domain regexes in Safari 18 or newer

Open ameshkov opened this issue 4 months ago • 0 comments
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

  1. Also check if it can be supported in Safari 17 just in case.
  2. Check that we don't mix if-top-url and unless-*

ameshkov avatar Jul 18 '25 07:07 ameshkov