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