diff --git a/4chan_x.user.js b/4chan_x.user.js
index 6cd5dbe51..c48abe147 100644
--- a/4chan_x.user.js
+++ b/4chan_x.user.js
@@ -1605,6 +1605,14 @@
ta.setSelectionRange(range, range);
return $.event(ta, 'input', 'Event');
},
+ characterCount: function() {
+ var count, counter;
+ counter = QR.charaCounter;
+ count = this.textLength;
+ counter.textContent = count;
+ counter.hidden = count < 1000;
+ return (count > 1500 ? $.addClass : $.rmClass)(counter, 'warning');
+ },
drag: function(e) {
var i;
i = e.type === 'dragstart' ? 'off' : 'on';
@@ -1807,6 +1815,7 @@
data = _ref1[_i];
$("[name=" + data + "]", QR.el).value = this[data];
}
+ QR.characterCount.call($('textarea', QR.el));
return $('#spoiler', QR.el).checked = this.spoiler;
};
@@ -1955,9 +1964,9 @@
×\
\