Hello everyone,What if we could see the
word count, character count and how long it would take to read what we are posting? Isn't that very interesting? I also noticed one more thing in this forum that those who do signature campaigns have a rule that they have to post a minimum of 200-300
characters. But in this forum we cannot directly see how many
characters or words we are posting, in that case they have to go to some other website and count the words or characters. That might seem very annoying to many. Also, if we could see how long it would take other
users to read the post you are making, then it would be very convenient for us to post.
So from that thoughts, I have created a userscript through which you can see the word and character count of your post and how long it will take to read it live. In this case, you don't have to go outside the forum and use any other external website.
Features:- Total words
- Total characters
- Estimated reading time (based on 200 words per minute)
Let's say I'm creating a topic and you can see how many words/characters I'm writing and how long it will take to read the post.
Installing this thing is very easy:- First, you download the Temporarily Man Key extension from Google Chrome.
- Then click on News Script and paste the script you copied and save it.
- That's it.
// ==UserScript==
// @name Bitcointalk Post Word/Char Counter
// @namespace Royal Cap
// @version 1.0.0
// @description Adds a live word, character, and estimated reading time counter to Bitcointalk reply boxes.
// @match https://bitcointalk.org/index.php?*
// @run-at document-start
// @grant none
// @license MIT
// ==/UserScript==
(function() {
'use strict';
function createCounterBox(textarea) {
if (textarea.dataset.counterAdded) return;
textarea.dataset.counterAdded = "1";
const counter = document.createElement('div');
counter.style.fontSize = '12px';
counter.style.marginTop = '4px';
counter.style.color = '#333';
counter.textContent = 'Words: 0 | Characters: 0 | Reading time: 0 min';
textarea.parentNode.insertBefore(counter, textarea.nextSibling);
function updateCounter() {
const text = textarea.value.trim();
const words = text.length ? text.split(/\s+/).length : 0;
const chars = text.length;
const readingTime = words ? Math.ceil(words / 200) : 0; // Avg 200 words/min
counter.textContent = `Words: ${words} | Characters: ${chars} | Reading time: ${readingTime} min`;
}
textarea.addEventListener('input', updateCounter);
updateCounter();
}
function init() {
document.querySelectorAll("textarea[name='message']").forEach(createCounterBox);
// Observe for new reply boxes (like quick reply)
const observer = new MutationObserver(() => {
document.querySelectorAll("textarea[name='message']").forEach(createCounterBox);
});
observer.observe(document.body, { childList: true, subtree: true });
}
init();
})();
Also here is the
greasyfork link just one click install.
Bitcointalk Post Word/Char Counter
And those who want to use it on
mobile can see the part below this post. (Everything is the same, just copy and paste the script above)
Mobile install stepsAlthough this is a very basic feature, I think it will help many people to post.