Bitcoin Forum
January 09, 2026, 05:17:57 PM *
News: Due to a wallet-migration bug, you should not upgrade Bitcoin Core. But if you already did, there's no need to downgrade.
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: A script to count the number of symbols in a message  (Read 142 times)
DimNik (OP)
Jr. Member
*
Offline Offline

Activity: 98
Merit: 8


View Profile
February 07, 2018, 07:03:35 AM
Merited by Welsh (2)
 #1

I present to your attention a user script for Greasemonkey, Tampermonkey and others.

The script adds the "Count symbols" button next to the "Post" and "Preview" buttons.

When you click this button, the script performs the following actions:
1. Takes everything from the "Reply" field.
2. Removes all citations and defines only your message.
3. Removes extra spaces.
4. Counts and displays count symbols in your message With Whitespaces.
5. Counts and displays count symbols in your message Without whitespaces.

Example:



GitHub: https://github.com/DimNS/UserScripts
OpenUserJS: https://openuserjs.org/scripts/DimNS/Bitcointalk_Message_Symbols_Count
Vod
Legendary
*
Offline Offline

Activity: 4312
Merit: 3436


Licking my boob since 1970


View Profile WWW
February 07, 2018, 07:54:33 AM
 #2

The script adds the "Count symbols" button next to the "Post" and "Preview" buttons.


A good idea.... we don't want the shitposters to type any more than they have to, right?   Roll Eyes

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
DimNik (OP)
Jr. Member
*
Offline Offline

Activity: 98
Merit: 8


View Profile
February 07, 2018, 08:03:43 AM
 #3

The script adds the "Count symbols" button next to the "Post" and "Preview" buttons.
A good idea.... we don't want the shitposters to type any more than they have to, right?   Roll Eyes
About the subtext let everyone guess himself Smiley
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!