Bitcoin Forum

Bitcoin => Project Development => Topic started by: DimNik on February 07, 2018, 07:03:35 AM



Title: A script to count the number of symbols in a message
Post by: DimNik on February 07, 2018, 07:03:35 AM
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:

https://raw.githubusercontent.com/DimNS/UserScripts/develop/example-btt-msc.png

GitHub: https://github.com/DimNS/UserScripts (https://github.com/DimNS/UserScripts)
OpenUserJS: https://openuserjs.org/scripts/DimNS/Bitcointalk_Message_Symbols_Count (https://openuserjs.org/scripts/DimNS/Bitcointalk_Message_Symbols_Count)


Title: Re: A script to count the number of symbols in a message
Post by: Vod on February 07, 2018, 07:54:33 AM
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?   ::)


Title: Re: A script to count the number of symbols in a message
Post by: DimNik on February 07, 2018, 08:03:43 AM
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?   ::)
About the subtext let everyone guess himself :)