Skip to content

Invalid conversion to uBO syntax - [$path] #264

@Alex-302

Description

@Alex-302

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)$/))

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions