Index: lib/filterClasses.js |
=================================================================== |
--- a/lib/filterClasses.js |
+++ b/lib/filterClasses.js |
@@ -963,20 +963,16 @@ |
if (type == "?") |
{ |
// Element hiding emulation filters are inefficient so we need to make sure |
// that they're only applied if they specify active domains |
if (!/,[^~][^,.]*\.[^,]/.test("," + domain)) |
return new InvalidFilter(text, "filter_elemhideemulation_nodomain"); |
- // The selector should contain at least one :-abp-foo() pseudo-class |
- if (!/:-abp-[\w-]+\(/.test(selector)) |
- return new InvalidFilter(text, "filter_elemhideemulation_plainselector"); |
- |
return new ElemHideEmulationFilter(text, domain, selector); |
} |
return new ElemHideFilter(text, domain, selector); |
}; |
/** |
* Class for element hiding filters |