From 5317db355df2ba88e9e19a7cc150c5e02d883dbc Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Sat, 5 Apr 2014 01:02:43 -0700 Subject: [PATCH] Handle captcha errors with a new captcha! --- builds/4chan-X.user.js | 1 + builds/crx/script.js | 1 + src/Posting/QR.coffee | 1 + 3 files changed, 3 insertions(+) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index ae729812c..ee2c52fa7 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -5787,6 +5787,7 @@ } if (QR.captcha.isEnabled && /captcha|verification/i.test(el.textContent)) { QR.captcha.nodes.input.focus(); + QR.captcha.setup(); if (Conf['Captcha Warning Notifications'] && !d.hidden) { QR.notify(el); } else { diff --git a/builds/crx/script.js b/builds/crx/script.js index 3b65c7cd8..c61b13fe3 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -5822,6 +5822,7 @@ } if (QR.captcha.isEnabled && /captcha|verification/i.test(el.textContent)) { QR.captcha.nodes.input.focus(); + QR.captcha.setup(); if (Conf['Captcha Warning Notifications'] && !d.hidden) { QR.notify(el); } else { diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 2db2f96ce..f1e112bc2 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -150,6 +150,7 @@ QR = if QR.captcha.isEnabled and /captcha|verification/i.test el.textContent # Focus the captcha input on captcha error. QR.captcha.nodes.input.focus() + QR.captcha.setup() if Conf['Captcha Warning Notifications'] and !d.hidden QR.notify el else