Make 'Use Recaptcha v1' override 'Force Noscript Captcha' again.
This commit is contained in:
parent
e511e7e8d3
commit
a8e84b83d9
@ -486,7 +486,7 @@ Config =
|
||||
]
|
||||
'Use Recaptcha v1': [
|
||||
false
|
||||
'Use the old text version of Recaptcha.'
|
||||
'Use the old text version of Recaptcha where possible.'
|
||||
]
|
||||
'Use Recaptcha v2 in Reports': [
|
||||
false
|
||||
|
||||
@ -2,18 +2,20 @@ Captcha.replace =
|
||||
init: ->
|
||||
return unless d.cookie.indexOf('pass_enabled=1') < 0
|
||||
|
||||
if Conf['Force Noscript Captcha'] and Main.jsEnabled
|
||||
$.ready Captcha.replace.noscript
|
||||
return
|
||||
|
||||
if location.hostname is 'sys.4chan.org' and Conf['Use Recaptcha v2 in Reports'] and Main.jsEnabled
|
||||
$.ready Captcha.replace.v2
|
||||
if location.hostname is 'sys.4chan.org' and Main.jsEnabled
|
||||
if Conf['Use Recaptcha v2 in Reports']
|
||||
type = if Conf['Force Noscript Captcha'] then 'noscript' else 'v2'
|
||||
$.ready Captcha.replace[type]
|
||||
return
|
||||
|
||||
if Conf['Use Recaptcha v1'] and Main.jsEnabled and location.hostname isnt 'www.4chan.org'
|
||||
$.ready Captcha.replace.v1
|
||||
return
|
||||
|
||||
if Conf['Force Noscript Captcha'] and Main.jsEnabled
|
||||
$.ready Captcha.replace.noscript
|
||||
return
|
||||
|
||||
if Conf['captchaLanguage'].trim() or Conf['Captcha Fixes']
|
||||
if location.hostname is 'boards.4chan.org'
|
||||
$.onExists doc, '#captchaFormPart', true, (node) -> $.onExists node, 'iframe', true, Captcha.replace.iframe
|
||||
|
||||
@ -29,10 +29,7 @@ QR =
|
||||
|
||||
return if g.VIEW is 'archive'
|
||||
|
||||
version = if Conf['Use Recaptcha v1'] and not Conf['Force Noscript Captcha'] and Main.jsEnabled
|
||||
'v1'
|
||||
else
|
||||
'v2'
|
||||
version = if Conf['Use Recaptcha v1'] and Main.jsEnabled then 'v1' else 'v2'
|
||||
@captcha = Captcha[version]
|
||||
|
||||
$.on d, '4chanXInitFinished', @initReady
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user