From e7e0e73236827c6120dca4d53c961267a67c94a6 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sat, 28 Jan 2012 20:25:42 +0100 Subject: [PATCH] Add captcha cache count in the input's alt for XTRM RICE. @KWeEabo0o --- 4chan_x.user.js | 3 ++- script.coffee | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index a4d0956ea..4b4e03d90 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1521,7 +1521,8 @@ count: function(count) { var s; s = count === 1 ? '' : 's'; - return this.input.placeholder = "Verification (" + count + " cached captcha" + s + ")"; + this.input.placeholder = "Verification (" + count + " cached captcha" + s + ")"; + return this.input.alt = count; }, reload: function(focus) { window.location = 'javascript:Recaptcha.reload()'; diff --git a/script.coffee b/script.coffee index 8aed69a57..d9d528db6 100644 --- a/script.coffee +++ b/script.coffee @@ -1123,6 +1123,7 @@ qr = count: (count) -> s = if count is 1 then '' else 's' @input.placeholder = "Verification (#{count} cached captcha#{s})" + @input.alt = count # For XTRM RICE. reload: (focus) -> window.location = 'javascript:Recaptcha.reload()' # Focus if we meant to.