From 8be4e4022a0a1a18bba299c1f2ead4931b1494a8 Mon Sep 17 00:00:00 2001 From: gorhill Date: Mon, 25 Aug 2014 08:49:08 -0400 Subject: [PATCH] this fixes #174 --- js/contentscript-end.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/contentscript-end.js b/js/contentscript-end.js index ef2f2b81d..41c7144c8 100644 --- a/js/contentscript-end.js +++ b/js/contentscript-end.js @@ -587,10 +587,9 @@ var uBlockMessaging = (function(name){ if ( !src ) { return; } - var pos = src.indexOf('#'); - if ( pos !== -1 ) { - src = src.slice(0, pos); - } + // https://github.com/gorhill/uBlock/issues/174 + // Do not remove fragment from src URL + var onAnswerReceived = function(details) { if ( !details.blocked ) { return; @@ -605,6 +604,7 @@ var uBlockMessaging = (function(name){ target.style.display = 'none !important'; } } + // TODO: investigate injecting as a style. Is Overhead worth it? messaging.tell({ what: 'injectedSelectors', type: 'net',