Work around dwb re-running script bug.
This commit is contained in:
parent
9c8f0e372c
commit
eba6cad429
@ -1,5 +1,9 @@
|
|||||||
Main =
|
Main =
|
||||||
init: ->
|
init: ->
|
||||||
|
# XXX dwb userscripts extension reloads scripts run at document-start when replaceState/pushState is called.
|
||||||
|
return if window['<%= meta.name %> antidup']
|
||||||
|
window['<%= meta.name %> antidup'] = true
|
||||||
|
|
||||||
if location.hostname is 'www.google.com'
|
if location.hostname is 'www.google.com'
|
||||||
if location.pathname is '/recaptcha/api/noscript'
|
if location.pathname is '/recaptcha/api/noscript'
|
||||||
$.ready -> Captcha.noscript.initFrame()
|
$.ready -> Captcha.noscript.initFrame()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user