From 7ea8187da3448d99685d78e763d7841aea12aed1 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 5 May 2015 20:22:22 -0600 Subject: [PATCH] Review last commit: oops --- src/js/contentscript-start.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/contentscript-start.js b/src/js/contentscript-start.js index 1dcfbb953..9e5210dfb 100644 --- a/src/js/contentscript-start.js +++ b/src/js/contentscript-start.js @@ -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;