Add Use Recaptcha v1 on Index option.

This commit is contained in:
ccd0 2017-02-20 21:21:45 -08:00
parent d16649f456
commit 6072139714
3 changed files with 7 additions and 3 deletions

View File

@ -9,7 +9,7 @@ Captcha.replace =
return
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')
) and Main.jsEnabled
$.ready Captcha.replace.v1

View File

@ -28,7 +28,7 @@ QR =
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]
$.on d, '4chanXInitFinished', -> BoardConfig.ready QR.initReady

View File

@ -495,7 +495,11 @@ Config =
]
'Use Recaptcha v1': [
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': [
false