diff --git a/4chan_x.user.js b/4chan_x.user.js index de80a6860..95e71a5a0 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1803,7 +1803,7 @@ $.add(el, err); } QR.open(); - if (qr.captchaIsEnabled && /captcha|verification/i.test(el.textContent)) { + if (QR.captchaIsEnabled && /captcha|verification/i.test(el.textContent)) { $('[autocomplete]', QR.el).focus(); } if (d.hidden || d.oHidden || d.mozHidden || d.webkitHidden) { diff --git a/script.coffee b/script.coffee index cca7b666c..28d27b14e 100644 --- a/script.coffee +++ b/script.coffee @@ -1392,7 +1392,7 @@ QR = el.innerHTML = null $.add el, err QR.open() - if qr.captchaIsEnabled and /captcha|verification/i.test el.textContent + if QR.captchaIsEnabled and /captcha|verification/i.test el.textContent # Focus the captcha input on captcha error. $('[autocomplete]', QR.el).focus() alert el.textContent if d.hidden or d.oHidden or d.mozHidden or d.webkitHidden