diff --git a/4chan_x.user.js b/4chan_x.user.js index 1ec1c1bfc..6a3487b9c 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2485,7 +2485,7 @@ err = 'Connection error with sys.4chan.org.'; } if (err) { - if (/captcha|verification/i.test(err) || err === 'Connection error with sys.4chan.org.') { + if (/captcha|verification/i.test(err.textContent) || err === 'Connection error with sys.4chan.org.') { QR.cooldown.auto = !!$.get('captchas', []).length; QR.cooldown.set(2); } else { diff --git a/script.coffee b/script.coffee index 49fbf2ab6..8f8a34812 100644 --- a/script.coffee +++ b/script.coffee @@ -1940,7 +1940,7 @@ QR = err = 'Connection error with sys.4chan.org.' if err - if /captcha|verification/i.test(err) or err is 'Connection error with sys.4chan.org.' + if /captcha|verification/i.test(err.textContent) or err is 'Connection error with sys.4chan.org.' # Enable auto-post if we have some cached captchas. QR.cooldown.auto = !!$.get('captchas', []).length # Too many frequent mistyped captchas will auto-ban you!