mirror of https://github.com/gorhill/uBlock.git
Code review of c1bdc123f2
This commit is contained in:
parent
1dfdc40e09
commit
c8860ff61d
|
@ -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)
|
||||
);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue