From: Alexander Butenko Date: Tue, 8 Nov 2011 21:22:01 +0000 (+0100) Subject: Append needed by Adblock correctly after blockcss X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc2bac2e015cf576245c26eb7cdf1a32656b6d63;p=midori Append needed by Adblock correctly after blockcss --- 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; }