1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-05 18:32:30 +01:00
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

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