From: Alexander Butenko Date: Wed, 23 Dec 2009 14:35:09 +0000 (+0100) Subject: Use id to avoid inserting adblock/ form history style more than once X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05601be63552575c7580ff4a45ef008fe2e04138;p=midori Use id to avoid inserting adblock/ form history style more than once --- diff --git a/extensions/adblock.c b/extensions/adblock.c index f1c36c25..cb5162d1 100644 --- a/extensions/adblock.c +++ b/extensions/adblock.c @@ -44,11 +44,8 @@ adblock_build_js (const gchar* style, return g_strdup_printf ( "window.addEventListener ('DOMContentLoaded'," "function () {" - " var styles = document.getElementsByTagName('style');" - " for (i=0; i