This commit is contained in:
Raymond Hill 2019-06-30 10:22:06 -04:00
parent 1dfdc40e09
commit c8860ff61d
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 11 additions and 7 deletions

View File

@ -990,13 +990,17 @@ const filterToDOMInterface = (( ) => {
cssSelectors.add(item.raw);
}
}
vAPI.domFilterer.addCSSRule(
Array.from(cssSelectors),
'display:none!important;'
);
vAPI.domFilterer.addProceduralSelectors(
Array.from(proceduralSelectors)
);
if ( cssSelectors.size !== 0 ) {
vAPI.domFilterer.addCSSRule(
Array.from(cssSelectors),
'display:none!important;'
);
}
if ( proceduralSelectors.size !== 0 ) {
vAPI.domFilterer.addProceduralSelectors(
Array.from(proceduralSelectors)
);
}
});
};