[Xfce4-commits] <midori:master> Append needed by Adblock correctly after blockcss

Christian Dywan noreply at xfce.org
Wed Nov 9 02:30:03 CET 2011


Updating branch refs/heads/master
         to fc2bac2e015cf576245c26eb7cdf1a32656b6d63 (commit)
       from 58066e7dcc021ee2962cb9b2d9a319ea7122b8ab (commit)

commit fc2bac2e015cf576245c26eb7cdf1a32656b6d63
Author: Alexander Butenko <a.butenka at gmail.com>
Date:   Tue Nov 8 22:22:01 2011 +0100

    Append needed by Adblock correctly after blockcss

 extensions/adblock.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/extensions/adblock.c b/extensions/adblock.c
index a68bf0a..8fabb48 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;
     }


More information about the Xfce4-commits mailing list