]> spindle.queued.net Git - midori/commitdiff
Append needed by Adblock correctly after blockcss
authorAlexander Butenko <a.butenka@gmail.com>
Tue, 8 Nov 2011 21:22:01 +0000 (22:22 +0100)
committerChristian Dywan <christian@twotoasts.de>
Tue, 8 Nov 2011 21:22:01 +0000 (22:22 +0100)
extensions/adblock.c

index a68bf0ad91742535fc0529e66e6722b576f90b02..8fabb4861deca6efffc6d87136ba3ac73a0fd5cf 100644 (file)
@@ -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;
     }