Skip to content
Permalink
Browse files
Support CSS selectors mixed w/ operators in procedural cosmetic filters.
Related issue:
gorhill/uBlock #3683

This commit further increases uBO's procedural cosmetic filters
Adguard's cosmetic filter syntax -- specifically those procedural
cosmetic filters where plain CSS selectors appeared following
a procedural operator (this was rejected as invalid by uBO).

Also, experimental support for `:watch-attrs` procedural
operator, as discussed in <uBlockOrigin/uBlock-issues#341 (comment)>.
Support may be dropped before next release depending on whether
a better solution is suggested.

Additionally, the usual opportunistic refactoring toward ES6
syntax.

Co-authored-by:  gorhill <585534+gorhill@users.noreply.github.com>
  • Loading branch information
hawkeye116477 and gorhill committed Jun 29, 2020
1 parent 5306672 commit 3bc09649dc4d24cd83eb9f14be90024f345b27d6
Showing with 261 additions and 204 deletions.
  1. +221 −186 src/js/contentscript.js
  2. +40 −18 src/js/static-ext-filtering.js

0 comments on commit 3bc0964

Please sign in to comment.