From 793ac450b00409024e9bd38d4c60612380fa7310 Mon Sep 17 00:00:00 2001 From: James Campos Date: Wed, 10 Aug 2011 00:43:25 -0700 Subject: [PATCH 1/2] I hate doing this over and over again --- 4chan_x.user.js | 4 ++-- header | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index b10c37f0d..61c4177a9 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2,12 +2,12 @@ // @name 4chan x // @namespace aeosynth // @description Adds various features. -// @version master +// @version 11.8.10.0 // @copyright 2009-2011 James Campos // @license MIT; http://en.wikipedia.org/wiki/Mit_license // @include http://boards.4chan.org/* // @include http://sys.4chan.org/* -// @updateURL https://github.com/aeosynth/4chan-x/raw/master/4chan_x.user.js +// @updateURL https://github.com/aeosynth/4chan-x/raw/stable/4chan_x.user.js // ==/UserScript== /* LICENSE diff --git a/header b/header index e39b88c21..b17f740d5 100644 --- a/header +++ b/header @@ -2,12 +2,12 @@ // @name 4chan x // @namespace aeosynth // @description Adds various features. -// @version master +// @version 11.8.10.0 // @copyright 2009-2011 James Campos // @license MIT; http://en.wikipedia.org/wiki/Mit_license // @include http://boards.4chan.org/* // @include http://sys.4chan.org/* -// @updateURL https://github.com/aeosynth/4chan-x/raw/master/4chan_x.user.js +// @updateURL https://github.com/aeosynth/4chan-x/raw/stable/4chan_x.user.js // ==/UserScript== /* LICENSE From 51975954a01a72a65e4b73d3e6b13d333ee35803 Mon Sep 17 00:00:00 2001 From: James Campos Date: Wed, 10 Aug 2011 10:07:58 -0700 Subject: [PATCH 2/2] don't store blank captchas --- 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 61c4177a9..e3e4b043b 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1264,7 +1264,7 @@ }, captchaKeydown: function(e) { var blank; - if (e.keyCode !== 13) { + if (!(e.keyCode === 13 && this.value)) { return; } blank = !$('textarea', qr.el).value && !$('input[type=file]', qr.el).files.length; diff --git a/script.coffee b/script.coffee index efe1ecb59..1edc6b2fa 100644 --- a/script.coffee +++ b/script.coffee @@ -997,7 +997,7 @@ qr = $('#recaptcha_challenge_field', qr.el).value = target.value captchaKeydown: (e) -> - return unless e.keyCode is 13 #enter + return unless e.keyCode is 13 and @value #enter blank = !$('textarea', qr.el).value and !$('input[type=file]', qr.el).files.length return unless blank or cooldown.duration