Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{
if (!(filter instanceof ActiveFilter))
return;
if (!filter.disabled)
{
let hasEnabled = false;
for (let i = 0; i < filter.subscriptions.length; i++)
if (!filter.subscriptions[i].disabled)
hasEnabled = true;
if (hasEnabled)
return;
}
if (filter instanceof RegExpFilter)
defaultMatcher.remove(filter);
else if (filter instanceof ElemHideBase)
{
if (filter instanceof CSSPropertyFilter)
CSSRules.remove(filter);
else
ElemHide.remove(filter);
}
}
var hasEnabled = false;
for (var i = 0; i < filter.subscriptions.length; i++)
{
if (!filter.subscriptions[i].disabled)
{
hasEnabled = true;
}
}
if (hasEnabled)
{
return;
}
}
if (filter instanceof RegExpFilter)
{
defaultMatcher.remove(filter);
}
else if (filter instanceof ElemHideBase)
{
ElemHide.remove(filter);
}
}
var hasEnabled = false;
for (var i = 0; i < filter.subscriptions.length; i++)
{
if (!filter.subscriptions[i].disabled)
{
hasEnabled = true;
}
}
if (hasEnabled)
{
return;
}
}
if (filter instanceof RegExpFilter)
{
defaultMatcher.remove(filter);
}
else if (filter instanceof ElemHideBase)
{
ElemHide.remove(filter);
}
}
var hasEnabled = false;
for (var i = 0; i < filter.subscriptions.length; i++)
{
if (!filter.subscriptions[i].disabled)
{
hasEnabled = true;
}
}
if (hasEnabled)
{
return;
}
}
if (filter instanceof RegExpFilter)
{
defaultMatcher.remove(filter);
}
else if (filter instanceof ElemHideBase)
{
ElemHide.remove(filter);
}
}