Make iframe bug workaround handle case where styles are injected into document.head by other scripts. #454

This commit is contained in:
ccd0 2015-08-14 17:30:07 -07:00
parent 8ae09a09d8
commit aba8c3653e

View File

@ -1,7 +1,7 @@
Main =
init: ->
# XXX Work around Pale Moon iframe bug.
return if d.body and not d.head.firstChild
# XXX Work around Pale Moon / old Firefox + GM 1.15 bug where script runs in iframe with wrong window.location.
return if d.body and not $ 'title', d.head
# XXX dwb userscripts extension reloads scripts run at document-start when replaceState/pushState is called.
return if window['<%= meta.name %> antidup']