FiltersCompiler icon indicating copy to clipboard operation
FiltersCompiler copied to clipboard

Invalid conversion to uBO syntax - `[$path]`

Open Alex-302 opened this issue 3 weeks ago • 0 comments

Matching "the main page only" [$path] should be converted to :matches-path(/^/$/) uBO's example: https://github.com/gorhill/ublock/wiki/Procedural-cosmetic-filters#subjectmatches-patharg:~:text=%3Amatches%2Dpath(/%5E/%24/)

Original

[$path]fontanka.ru#?#.gridContainer > div[class*="grid"]:has(> section[class^="baseBlock_"] > a[href]:contains(/^(Новости компаний|Фонтанка PRO)$/))

Converted to uBO:

fontanka.ru#?#:matches-path(/^/$/) .gridContainer > div[class*="grid"]:has(> section[class^="baseBlock_"] > a[href]:contains(/^(Новости компаний|Фонтанка PRO)$/))

Alex-302 avatar Oct 19 '25 13:10 Alex-302