diff --git a/4chan_x.user.js b/4chan_x.user.js
index 250f786e8..40f720579 100644
--- a/4chan_x.user.js
+++ b/4chan_x.user.js
@@ -1281,7 +1281,7 @@
return qr.captchaTime = Date.now();
},
captchaKeydown: function(e) {
- var blank, captcha;
+ var blank, captchas;
if (!(e.keyCode === 13 && this.value)) {
return;
}
@@ -1293,14 +1293,14 @@
if (conf['Auto Hide QR']) {
$('#autohide', qr.el).checked = true;
}
- captcha = $.get('captcha', []);
- captcha.push({
+ captchas = $.get('captchas', []);
+ captchas.push({
challenge: $('#recaptcha_challenge_field', qr.el).value,
response: this.value,
time: qr.captchaTime
});
- $.set('captcha', captcha);
- this.nextSibling.textContent = captcha.length + ' captcha cached';
+ $.set('captchas', captchas);
+ this.nextSibling.textContent = captchas.length + ' captchas';
Recaptcha.reload();
return this.value = '';
},
@@ -1315,7 +1315,7 @@
THREAD_ID = g.THREAD_ID || $.x('ancestor::div[@class="thread"]/div', link).id;
spoiler = $('.postarea label') ? '' : '';
challenge = $('#recaptcha_challenge_field').value;
- html = " X
Quick Reply
";
+ html = " X Quick Reply
";
qr.el = ui.dialog('qr', {
top: '0px',
left: '0px'
diff --git a/script.coffee b/script.coffee
index 186be84bb..c1a0775a9 100644
--- a/script.coffee
+++ b/script.coffee
@@ -959,6 +959,7 @@ qr =
# error handling / logging
# persistent captcha
# rm Recaptcha
+ # email reverts
init: ->
g.callbacks.push qr.node
$.bind window, 'message', qr.message
@@ -1026,13 +1027,13 @@ qr =
$('#auto', qr.el).checked = true
$('#autohide', qr.el).checked = true if conf['Auto Hide QR']
- captcha = $.get 'captcha', []
- captcha.push
+ captchas = $.get 'captchas', []
+ captchas.push
challenge: $('#recaptcha_challenge_field', qr.el).value
response: @value
time: qr.captchaTime
- $.set 'captcha', captcha
- @nextSibling.textContent = captcha.length + ' captcha cached'
+ $.set 'captchas', captchas
+ @nextSibling.textContent = captchas.length + ' captchas'
Recaptcha.reload()
@value = ''
@@ -1061,7 +1062,7 @@ qr =
- #{$.get('captcha', []).length} captcha cached
+ #{$.get('captchas', []).length} captchas