]> spindle.queued.net Git - midori/commitdiff
Don't use titles for adblock styles, WebKit only loads one with a title
authorAlexander Butenko <a.butenka@gmail.com>
Tue, 22 Dec 2009 00:05:54 +0000 (01:05 +0100)
committerChristian Dywan <christian@twotoasts.de>
Tue, 22 Dec 2009 00:05:54 +0000 (01:05 +0100)
extensions/formhistory.c

index fbf05774dc653a2aa9496370bc61d38584b9dc46..6ae124e15e3a17a9bdede8e44c3af0fa72d08290 100644 (file)
@@ -58,15 +58,9 @@ formhistory_prepare_js ()
         "%s"
         "window.addEventListener ('DOMContentLoaded',"
         "function () {"
-        "   var styles = document.getElementsByTagName('style');"
-        "   for (i=0; i<styles.length; i++) {"
-        "       if (styles[i].getAttribute('title') == 'formhistory')"
-        "           return;"
-        "   }"
         "   initSuggestions ();"
         "   var mystyle = document.createElement('style');"
         "   mystyle.setAttribute('type', 'text/css');"
-        "   mystyle.setAttribute('title', 'formhistory');"
         "   mystyle.appendChild(document.createTextNode('%s'));"
         "   var head = document.getElementsByTagName('head')[0];"
         "   if (head) head.appendChild(mystyle);"