Bitcoin Forum
April 25, 2024, 02:05:46 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Local / Русский (Russian) / Скрипт подсчета количества символов в соl on: February 07, 2018, 07:05:36 AM
Представляю вашему вниманию пользовательский скрипт для Greasemonkey, Tampermonkey и других.

Скрипт добавляет кнопку "Count Symbols" рядом с кнопками "Post" и "Preview".

При нажатии на эту кнопку скрипт выполняет следующие действия:
1. Забирает всё из поля "Reply".
2. Убирает все цитирования и определяет только ваше сообщение.
3. Убирает лишние пробелы.
4. Подсчитывает и отображает количество символов в вашем сообщении с пробелами.
5. Подсчитывает и отображает количество символов в вашем сообщении без пробелов.

Пример работы скрипта:



GitHub: https://github.com/DimNS/UserScripts
OpenUserJS: https://openuserjs.org/scripts/DimNS/Bitcointalk_Message_Symbols_Count
2  Bitcoin / Project Development / A script to count the number of symbols in a message 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:



GitHub: https://github.com/DimNS/UserScripts
OpenUserJS: https://openuserjs.org/scripts/DimNS/Bitcointalk_Message_Symbols_Count
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!