diff --git a/4chan_x.user.js b/4chan_x.user.js index fd2cf8d17..d9f1d51f8 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2515,6 +2515,9 @@ } if (err) { if (/captcha|verification/i.test(err.textContent) || err === 'Connection error with sys.4chan.org.') { + if (/mistyped/i.test(err.textContent)) { + err.textContent = 'Error: You seem to have mistyped the CAPTCHA.'; + } QR.cooldown.auto = QR.captchaIsEnabled ? !!$.get('captchas', []).length : true; QR.cooldown.set(2); } else { diff --git a/changelog b/changelog index e4441a303..072d22d24 100644 --- a/changelog +++ b/changelog @@ -1,5 +1,6 @@ master - Mayhem + Removed the obnoxious 4chan Pass ad in captcha errors when posting. Fix 'Administrator/Moderator/Developer Replies' creating extra backlinks on /q/, again. 2.35.3 diff --git a/script.coffee b/script.coffee index aa4dd3070..5e27683ca 100644 --- a/script.coffee +++ b/script.coffee @@ -1957,6 +1957,9 @@ QR = if err if /captcha|verification/i.test(err.textContent) or err is 'Connection error with sys.4chan.org.' + # Remove the obnoxious 4chan Pass ad. + if /mistyped/i.test err.textContent + err.textContent = 'Error: You seem to have mistyped the CAPTCHA.' # Enable auto-post if we have some cached captchas. QR.cooldown.auto = if QR.captchaIsEnabled