Add 'Captcha Fixes' option to turn script in captcha on/off.
This commit is contained in:
parent
8bea005b3f
commit
bb91393b36
@ -478,6 +478,10 @@ Config =
|
|||||||
'Places a link on the bottom of threads to open the QR.'
|
'Places a link on the bottom of threads to open the QR.'
|
||||||
1
|
1
|
||||||
]
|
]
|
||||||
|
'Captcha Fixes': [
|
||||||
|
true
|
||||||
|
'Make captcha more keyboard-navigable.'
|
||||||
|
]
|
||||||
|
|
||||||
'Quote Links':
|
'Quote Links':
|
||||||
'Quote Backlinks': [
|
'Quote Backlinks': [
|
||||||
|
|||||||
@ -1,12 +1,13 @@
|
|||||||
Main =
|
Main =
|
||||||
init: ->
|
init: ->
|
||||||
if location.hostname is 'www.google.com'
|
if location.hostname is 'www.google.com'
|
||||||
return $.ready ->
|
if location.pathname is '/recaptcha/api/fallback'
|
||||||
doc = d.documentElement
|
$.ready -> Captcha.noscript.initFrame()
|
||||||
if location.pathname is '/recaptcha/api/fallback'
|
else
|
||||||
Captcha.noscript.initFrame()
|
$.get 'Captcha Fixes', true, ({'Captcha Fixes': enabled}) ->
|
||||||
else
|
if enabled
|
||||||
Captcha.fixes.init()
|
$.ready -> Captcha.fixes.init()
|
||||||
|
return
|
||||||
|
|
||||||
g.threads = new SimpleDict()
|
g.threads = new SimpleDict()
|
||||||
g.posts = new SimpleDict()
|
g.posts = new SimpleDict()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user