do not leak uBlock is in use (see comment in 21ea1a6e03)

This commit is contained in:
gorhill 2015-02-14 13:50:06 -05:00
parent 5406daa275
commit 337cfeb150
2 changed files with 0 additions and 3 deletions

View File

@ -208,7 +208,6 @@ var messager = vAPI.messaging.channel('contentscript-end.js');
var addStyleTag = function(selectors) {
hideElements(selectors);
var style = document.createElement('style');
style.setAttribute('class', 'ublock-postload-1ae7a5f130fc79b4fdb8a4272d9426b5');
// The linefeed before the style block is very important: do no remove!
style.appendChild(document.createTextNode(selectors.join(',\n') + '\n{display:none !important;}'));
var parent = document.body || document.documentElement;

View File

@ -97,7 +97,6 @@ var cosmeticFilters = function(details) {
var text = hide.join(',\n');
hideElements(text);
var style = vAPI.specificHideStyle = document.createElement('style');
style.setAttribute('id', 'ublock-preload-1ae7a5f130fc79b4fdb8a4272d9426b5');
// 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);
@ -116,7 +115,6 @@ var netFilters = function(details) {
return;
}
var style = document.createElement('style');
style.setAttribute('class', 'ublock-preload-1ae7a5f130fc79b4fdb8a4272d9426b5');
var text = details.netHide.join(',\n');
var css = details.netCollapse ?
'\n{display:none !important;}' :