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);
|
cssSelectors.add(item.raw);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ( cssSelectors.size !== 0 ) {
|
||||||
vAPI.domFilterer.addCSSRule(
|
vAPI.domFilterer.addCSSRule(
|
||||||
Array.from(cssSelectors),
|
Array.from(cssSelectors),
|
||||||
'display:none!important;'
|
'display:none!important;'
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
if ( proceduralSelectors.size !== 0 ) {
|
||||||
vAPI.domFilterer.addProceduralSelectors(
|
vAPI.domFilterer.addProceduralSelectors(
|
||||||
Array.from(proceduralSelectors)
|
Array.from(proceduralSelectors)
|
||||||
);
|
);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue