diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 9d75dfe1b..f845c5ac4 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -6383,6 +6383,8 @@ if (/captcha|verification/i.test(err.textContent) || err === 'Connection error with sys.4chan.org.') { if (/mistyped/i.test(err.textContent)) { err = 'You seem to have mistyped the CAPTCHA.'; + } else if (/expired/i.test(err.textContent)) { + err = 'This CAPTCHA is no longer valid because it has expired.'; } QR.cooldown.auto = QR.captcha.isEnabled ? !!QR.captcha.captchas.length : err === 'Connection error with sys.4chan.org.' ? true : false; QR.cooldown.set({ diff --git a/builds/crx/script.js b/builds/crx/script.js index 8a90ea2a1..207a6b88f 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -6408,6 +6408,8 @@ if (/captcha|verification/i.test(err.textContent) || err === 'Connection error with sys.4chan.org.') { if (/mistyped/i.test(err.textContent)) { err = 'You seem to have mistyped the CAPTCHA.'; + } else if (/expired/i.test(err.textContent)) { + err = 'This CAPTCHA is no longer valid because it has expired.'; } QR.cooldown.auto = QR.captcha.isEnabled ? !!QR.captcha.captchas.length : err === 'Connection error with sys.4chan.org.' ? true : false; QR.cooldown.set({ diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 5bfca34a4..a05f72c2c 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -726,6 +726,8 @@ QR = # Remove the obnoxious 4chan Pass ad. if /mistyped/i.test err.textContent err = 'You seem to have mistyped the CAPTCHA.' + else if /expired/i.test err.textContent + err = 'This CAPTCHA is no longer valid because it has expired.' # Enable auto-post if we have some cached captchas. QR.cooldown.auto = if QR.captcha.isEnabled !!QR.captcha.captchas.length