Skip to content

v1.20.0

Compare
Choose a tag to compare
@github-actions github-actions released this 21 Jan 11:54
· 2004 commits to master since this release

Release Notes

Initial support for extended CSS selectors (a.k.a. procedural filters) (#1574)

Add initial support for extended CSS selectors (a.k.a. procedural filters) as well as the :remove() modifier for element hiding rules (note: the already supported :style modified now also works with extended CSS selectors). The following new pseudo-classes are implemented: :has (and its alias :if), :has-text (both string and RegExp literals), and :not (whenever its argument is also an extended selector, otherwise fallback to native implementation).

Caveats:

  • Loading of extended css filters is disabled by default and needs to be toggled using the loadExtendedSelectors option while initializing the blocker instance.
  • These news selectors are currently only supported by WebExtensionBlocker (support for Puppeteer, Electron and Playwright is not planned at this time but help from the community would be greatly appreciated).

Miscellaneous changes:

  • Removal of unused injectCSSRule helper.
  • Replace Closure compiler by Terser.

🚀 New Feature

  • @cliqz/adblocker-content, @cliqz/adblocker-electron-preload, @cliqz/adblocker-electron, @cliqz/adblocker-extended-selectors, @cliqz/adblocker-playwright, @cliqz/adblocker-puppeteer, @cliqz/adblocker-webextension-cosmetics, @cliqz/adblocker-webextension-example, @cliqz/adblocker-webextension, @cliqz/adblocker
    • Initial support for extended CSS selectors (a.k.a. procedural filters) #1574 (@remusao)

🏠 Internal

🔩 Dependencies

Authors: 3