Review last commit: oops

This commit is contained in:
Chris 2015-05-05 20:22:22 -06:00
parent a9e77b4d48
commit 7ea8187da3
1 changed files with 1 additions and 0 deletions

View File

@ -94,6 +94,7 @@ var cosmeticFilters = function(details) {
var text = hide.join(',\n');
hideElements(text);
var style = vAPI.specificHideStyle = document.createElement('style');
// The linefeed before the style block is very important: do not remove!
style.appendChild(document.createTextNode(text + '\n{display:none !important;}'));
//console.debug('µBlock> "%s" cosmetic filters: injecting %d CSS rules:', details.domain, details.hide.length, hideStyleText);
var parent = document.head || document.documentElement;