uBlock/src
Raymond Hill 9dece3bd30
Add new procedural cosmetic operator: :matches-path(...)
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1690

New procedural operator: `:matches-path(...)`

Description: this is a all-or-nothing passthrough operator, which
on/off behavior is dictated by whether the argument match the
path of the current location. The argument can be either plain
text to be found at any position in the path, or a literal regex
against which the path is tested.

Whereas cosmetic filters can be made specific to whole domain,
the new `:matches-path()` operator allows to further narrow
the specificity according to the path of the current document
lcoation.

Typically this procedural operator is used as first operator in
a procedural cosmetic filter, so as to ensure that no further
matching work is performed should there be no match against the
current path of the current document location.

Example of usage:

    example.com##:matches-path(/shop) p

Will hide all `p` elements when visiting `https://example.com/shop/stuff`,
but not when visiting `https://example.com/` or any other page
on `example.com` which has no instance of `/shop` in the path part
of the URL.
2021-08-21 09:41:48 -04:00
..
_locales Import translation work from https://crowdin.com/project/ublock 2021-08-10 09:46:43 -04:00
css Provide visual cue in popup panel when base domain has subdomains 2021-07-20 08:37:05 -04:00
img Fix missing magnifier in document-blocked page 2020-12-07 14:32:59 -05:00
js Add new procedural cosmetic operator: :matches-path(...) 2021-08-21 09:41:48 -04:00
lib Add support for enabling WASM code paths in NodeJS package 2021-07-29 16:54:51 -04:00
web_accessible_resources Merge branch 'master' of https://github.com/gorhill/uBlock into 1664 2021-07-29 08:54:48 -04:00
1p-filters.html Modularize codebase with export/import 2021-07-27 17:26:04 -04:00
3p-filters.html Remove more cases of svg/use 2020-08-06 09:05:10 -04:00
about.html Disclose where uBO's own filter lists are hosted 2021-07-18 10:10:17 -04:00
advanced-settings.html Complete removal of font-based Fontawesome icons 2020-12-06 11:24:04 -05:00
asset-viewer.html Modularize codebase with export/import 2021-07-27 17:26:04 -04:00
background.html Further modularize uBO's codebase 2021-07-28 19:48:38 -04:00
cloud-ui.html Fix layout issue with cloud storage widget 2020-08-21 08:57:47 -04:00
dashboard.html Adding to and further reviewing admin-managed settings 2021-01-06 11:39:24 -05:00
document-blocked.html Fix missing magnifier in document-blocked page 2020-12-07 14:32:59 -05:00
dyna-rules.html Modularize codebase with export/import 2021-07-27 17:26:04 -04:00
logger-ui.html Modularize codebase with export/import 2021-07-27 17:26:04 -04:00
no-dashboard.html Add missing no-dashboard page 2021-01-06 12:09:53 -05:00
popup-fenix.html Provide visual cue in popup panel when base domain has subdomains 2021-07-20 08:37:05 -04:00
popup.html Sixth pass to re-design the dashboard 2020-04-13 09:19:58 -04:00
settings.html Expose ability to toggle on/off cname-uncloaking to all users 2021-03-02 13:00:56 -05:00
shortcuts.html Lint HTML files using tidy 2020-04-25 11:31:42 -04:00
whitelist.html Complete removal of font-based Fontawesome icons 2020-12-06 11:24:04 -05:00