From a996f4c82d750bb98cc087eed82d45fe4a564ade Mon Sep 17 00:00:00 2001 From: Anton Lazarev Date: Tue, 2 Jul 2019 16:00:34 -0700 Subject: [PATCH 1/2] allow the 'not' pseudoclass in cosmetic filters --- packages/adblocker/src/filters/cosmetic.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/adblocker/src/filters/cosmetic.ts b/packages/adblocker/src/filters/cosmetic.ts index 10ea1b8c0a..31d9a29675 100644 --- a/packages/adblocker/src/filters/cosmetic.ts +++ b/packages/adblocker/src/filters/cosmetic.ts @@ -398,7 +398,6 @@ export default class CosmeticFilter implements IFilter { fastStartsWithFrom(line, 'matches-css', indexAfterColon) || fastStartsWithFrom(line, 'matches-css-after', indexAfterColon) || fastStartsWithFrom(line, 'matches-css-before', indexAfterColon) || - fastStartsWithFrom(line, 'not', indexAfterColon) || fastStartsWithFrom(line, 'properties', indexAfterColon) || fastStartsWithFrom(line, 'subject', indexAfterColon) || fastStartsWithFrom(line, 'xpath', indexAfterColon) From 0705e7f9fd6831d8a627a1795d02c9f0c8fea73f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Berson?= Date: Wed, 3 Jul 2019 20:26:43 +0200 Subject: [PATCH 2/2] docs: update CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d82ae5990..daf2133cf6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ *not released yet* + * allow the 'not' pseudoclass in cosmetic filters [#184](https://github.com/cliqz-oss/adblocker/pull/184) * switch from `tldts` to `tldts-experimental` package [#183](https://github.com/cliqz-oss/adblocker/pull/183) * add `bootstrap` to root package.json * switch from `tldts` to `tldts-experimental` (faster, smaller bundles)