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"
|
||||
"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);"
|
||||
|
|
Loading…
Reference in a new issue