From df78c2e1f824ecb1490bf8e91bc6e1523aecc7cc 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 e1aedac33..91328acdd 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -6123,6 +6123,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 b12bbbbcf..d29c43881 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -6178,6 +6178,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 558eb0a57..1e74ee756 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -144,6 +144,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