Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function onGenericChange(action)
{
if (action == "load")
{
isDirty = 0;
defaultMatcher.clear();
ElemHide.clear();
CSSRules.clear();
for (let subscription of FilterStorage.subscriptions)
if (!subscription.disabled)
subscription.filters.forEach(addFilter);
flushElemHide();
}
else if (action == "save")
isDirty = 0;
}
function onGenericChange(action)
{
if (action == "load")
{
isDirty = 0;
defaultMatcher.clear();
ElemHide.clear();
for (var _loopIndex20 = 0; _loopIndex20 < FilterStorage.subscriptions.length; ++_loopIndex20)
{
var subscription = FilterStorage.subscriptions[_loopIndex20];
if (!subscription.disabled)
{
subscription.filters.forEach(addFilter);
}
}
flushElemHide();
}
else if (action == "save")
{
isDirty = 0;
}
}
function onGenericChange(action)
{
if (action == "load")
{
isDirty = 0;
defaultMatcher.clear();
ElemHide.clear();
for (var _loopIndex20 = 0; _loopIndex20 < FilterStorage.subscriptions.length; ++_loopIndex20)
{
var subscription = FilterStorage.subscriptions[_loopIndex20];
if (!subscription.disabled)
{
subscription.filters.forEach(addFilter);
}
}
flushElemHide();
}
else if (action == "save")
{
isDirty = 0;
}
}
function onGenericChange(action)
{
if (action == "load")
{
isDirty = 0;
defaultMatcher.clear();
ElemHide.clear();
for (var _loopIndex24 = 0; _loopIndex24 < FilterStorage.subscriptions.length; ++_loopIndex24)
{
var subscription = FilterStorage.subscriptions[_loopIndex24];
if (!subscription.disabled)
{
subscription.filters.forEach(addFilter);
}
}
flushElemHide();
}
else if (action == "save")
{
isDirty = 0;
}
}