Don't remove code paste field if the captcha is refusing to serve a challenge.
This commit is contained in:
parent
70467f939a
commit
244d41bb1e
@ -73,8 +73,15 @@ Captcha.fixes =
|
|||||||
|
|
||||||
initNoscript: ->
|
initNoscript: ->
|
||||||
@noscript = true
|
@noscript = true
|
||||||
data = if (token = $('.fbc-verification-token > textarea')?.value) then {token} else {working: true}
|
form = $ '.fbc-imageselect-challenge > form'
|
||||||
new Connection(window.parent, '*').send data
|
data =
|
||||||
|
if (token = $('.fbc-verification-token > textarea')?.value)
|
||||||
|
{token}
|
||||||
|
else if $('.fbc-imageselect-challenge > form')
|
||||||
|
{working: true}
|
||||||
|
else
|
||||||
|
null
|
||||||
|
new Connection(window.parent, '*').send data if data
|
||||||
d.body.classList.toggle 'focus', d.hasFocus()
|
d.body.classList.toggle 'focus', d.hasFocus()
|
||||||
$.on window, 'focus blur', -> d.body.classList.toggle 'focus', d.hasFocus()
|
$.on window, 'focus blur', -> d.body.classList.toggle 'focus', d.hasFocus()
|
||||||
|
|
||||||
@ -85,7 +92,7 @@ Captcha.fixes =
|
|||||||
$.addStyle @cssNoscript
|
$.addStyle @cssNoscript
|
||||||
@addLabels()
|
@addLabels()
|
||||||
$.on d, 'keydown', @keybinds.bind(@)
|
$.on d, 'keydown', @keybinds.bind(@)
|
||||||
$.on $('.fbc-imageselect-challenge > form'), 'submit', @checkForm.bind(@)
|
$.on form, 'submit', @checkForm.bind(@)
|
||||||
|
|
||||||
fixImages: ->
|
fixImages: ->
|
||||||
@images = $$ '.rc-image-tile-target'
|
@images = $$ '.rc-image-tile-target'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user