Restore 'Use Recaptcha v1 in Reports' functionality when reporting from native catalog. #1346
This commit is contained in:
parent
7b440cb27c
commit
f7974c927f
@ -8,6 +8,10 @@ Captcha.replace =
|
||||
Captcha.v1.create()
|
||||
return
|
||||
|
||||
if location.hostname is 'sys.4chan.org' and Conf['Use Recaptcha v1 in Reports'] and Main.jsEnabled
|
||||
$.ready Captcha.replace.v1
|
||||
return
|
||||
|
||||
if Conf['Force Noscript Captcha'] and Main.jsEnabled
|
||||
$.ready Captcha.replace.noscript
|
||||
return
|
||||
@ -32,6 +36,16 @@ Captcha.replace =
|
||||
else
|
||||
insert()
|
||||
|
||||
v1: ->
|
||||
return if not (old = $.id 'g-recaptcha')
|
||||
script = $.el 'script',
|
||||
src: '//www.google.com/recaptcha/api/js/recaptcha_ajax.js'
|
||||
$.add d.head, script
|
||||
container = $.el 'div',
|
||||
id: 'captchaContainerAlt'
|
||||
$.replace old, container
|
||||
Captcha.v1.create()
|
||||
|
||||
iframe: (iframe) ->
|
||||
if (lang = Conf['captchaLanguage'].trim())
|
||||
src = if /[?&]hl=/.test iframe.src
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user