Add Use Recaptcha v1 on Index option.
This commit is contained in:
parent
d16649f456
commit
6072139714
@ -9,7 +9,7 @@ Captcha.replace =
|
|||||||
return
|
return
|
||||||
|
|
||||||
if (
|
if (
|
||||||
(Conf['Use Recaptcha v1'] and location.hostname is 'boards.4chan.org') or
|
(Conf[if g.VIEW is 'thread' then 'Use Recaptcha v1' else 'Use Recaptcha v1 on Index'] and location.hostname is 'boards.4chan.org') or
|
||||||
(Conf['Use Recaptcha v1 in Reports'] and location.hostname is 'sys.4chan.org')
|
(Conf['Use Recaptcha v1 in Reports'] and location.hostname is 'sys.4chan.org')
|
||||||
) and Main.jsEnabled
|
) and Main.jsEnabled
|
||||||
$.ready Captcha.replace.v1
|
$.ready Captcha.replace.v1
|
||||||
|
|||||||
@ -28,7 +28,7 @@ QR =
|
|||||||
|
|
||||||
return if g.VIEW is 'archive'
|
return if g.VIEW is 'archive'
|
||||||
|
|
||||||
version = if Conf['Use Recaptcha v1'] and Main.jsEnabled then 'v1' else 'v2'
|
version = if Conf[if g.VIEW is 'thread' then 'Use Recaptcha v1' else 'Use Recaptcha v1 on Index'] and Main.jsEnabled then 'v1' else 'v2'
|
||||||
@captcha = Captcha[version]
|
@captcha = Captcha[version]
|
||||||
|
|
||||||
$.on d, '4chanXInitFinished', -> BoardConfig.ready QR.initReady
|
$.on d, '4chanXInitFinished', -> BoardConfig.ready QR.initReady
|
||||||
|
|||||||
@ -495,7 +495,11 @@ Config =
|
|||||||
]
|
]
|
||||||
'Use Recaptcha v1': [
|
'Use Recaptcha v1': [
|
||||||
false
|
false
|
||||||
'Use the old text version of Recaptcha in the post form.'
|
'Use the old text version of Recaptcha in the post form in threads.'
|
||||||
|
]
|
||||||
|
'Use Recaptcha v1 on Index': [
|
||||||
|
false
|
||||||
|
'Use the old text version of Recaptcha on the index and catalog. Warning: May interfere with starting threads.'
|
||||||
]
|
]
|
||||||
'Use Recaptcha v1 in Reports': [
|
'Use Recaptcha v1 in Reports': [
|
||||||
false
|
false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user