From d66a161f70f9df247cf78d0f3071bd1f9a52cccc Mon Sep 17 00:00:00 2001 From: James Campos Date: Wed, 21 Sep 2011 00:07:09 -0700 Subject: [PATCH] don't cache captcha when autoposting --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index b8abeda96..d547d9d5f 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1492,7 +1492,7 @@ } qr = QR.qr; $('.error', qr).textContent = ''; - if ((el = $('#recaptcha_response_field', qr)).value) { + if (e && (el = $('#recaptcha_response_field', qr)).value) { QR.captchaPush(el); } if (!(captcha = QR.captchaShift())) { diff --git a/script.coffee b/script.coffee index 1ba2f3ee7..9d0ec1563 100644 --- a/script.coffee +++ b/script.coffee @@ -1166,7 +1166,7 @@ QR = return {qr} = QR $('.error', qr).textContent = '' - if (el = $('#recaptcha_response_field', qr)).value + if e and (el = $('#recaptcha_response_field', qr)).value QR.captchaPush el if not captcha = QR.captchaShift() alert 'You forgot to type in the verification.'