From fc2bac2e015cf576245c26eb7cdf1a32656b6d63 Mon Sep 17 00:00:00 2001 From: Alexander Butenko Date: Tue, 8 Nov 2011 22:22:01 +0100 Subject: [PATCH] Append needed by Adblock correctly after blockcss --- extensions/adblock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/adblock.c b/extensions/adblock.c index a68bf0ad..8fabb486 100644 --- a/extensions/adblock.c +++ b/extensions/adblock.c @@ -69,7 +69,6 @@ adblock_build_js (const gchar* private) " public += ', .'+sites[i];" " break;" " }}" - " public += ' {display: none !important}';" " var mystyle = document.createElement('style');" " mystyle.setAttribute('type', 'text/css');" " mystyle.setAttribute('id', 'madblock');" @@ -1304,6 +1303,7 @@ adblock_parse_file (gchar* path) { while (fgets (line, 2000, file)) adblock_parse_line (line); + g_string_append (blockcss, "{display: none !important}\n"); fclose (file); return TRUE; } -- 2.39.5