mirror of https://github.com/gorhill/uBlock.git
Review last commit: oops
This commit is contained in:
parent
a9e77b4d48
commit
7ea8187da3
|
@ -94,6 +94,7 @@ var cosmeticFilters = function(details) {
|
||||||
var text = hide.join(',\n');
|
var text = hide.join(',\n');
|
||||||
hideElements(text);
|
hideElements(text);
|
||||||
var style = vAPI.specificHideStyle = document.createElement('style');
|
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;}'));
|
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);
|
//console.debug('µBlock> "%s" cosmetic filters: injecting %d CSS rules:', details.domain, details.hide.length, hideStyleText);
|
||||||
var parent = document.head || document.documentElement;
|
var parent = document.head || document.documentElement;
|
||||||
|
|
Loading…
Reference in New Issue