Don't use titles for adblock styles, WebKit only loads one with a title
This commit is contained in:
parent
1c424106f1
commit
9ab1040e5f
1 changed files with 0 additions and 6 deletions
|
@ -58,15 +58,9 @@ formhistory_prepare_js ()
|
||||||
"%s"
|
"%s"
|
||||||
"window.addEventListener ('DOMContentLoaded',"
|
"window.addEventListener ('DOMContentLoaded',"
|
||||||
"function () {"
|
"function () {"
|
||||||
" var styles = document.getElementsByTagName('style');"
|
|
||||||
" for (i=0; i<styles.length; i++) {"
|
|
||||||
" if (styles[i].getAttribute('title') == 'formhistory')"
|
|
||||||
" return;"
|
|
||||||
" }"
|
|
||||||
" initSuggestions ();"
|
" initSuggestions ();"
|
||||||
" var mystyle = document.createElement('style');"
|
" var mystyle = document.createElement('style');"
|
||||||
" mystyle.setAttribute('type', 'text/css');"
|
" mystyle.setAttribute('type', 'text/css');"
|
||||||
" mystyle.setAttribute('title', 'formhistory');"
|
|
||||||
" mystyle.appendChild(document.createTextNode('%s'));"
|
" mystyle.appendChild(document.createTextNode('%s'));"
|
||||||
" var head = document.getElementsByTagName('head')[0];"
|
" var head = document.getElementsByTagName('head')[0];"
|
||||||
" if (head) head.appendChild(mystyle);"
|
" if (head) head.appendChild(mystyle);"
|
||||||
|
|
Loading…
Reference in a new issue