selection length | 选中计字数

鼠标拖选显示选中字数

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Author
hzhbest
Daily installs
0
Total installs
765
Ratings
22 0 0
Version
1.3
Created
2015-07-03
Updated
2023-04-17
Size
5.36 KB
License
N/A
Applies to
All sites

只要按住Alt键用鼠标选中一些文字,一个小卡片就会弹出来,显示选中的各类字符数,给你一个非常清晰的字数统计结果。
统计结果会在数秒后自动消失;如果想保持统计结果显示方便查看和复制,可在其弹出后将鼠标移到其上。
* 为了不和其他使用了Alt键拖动响应的扩展、脚本等冲突,本脚本特别设计成,只需要在选中文字后但鼠标左键仍然按下时,按住Alt键,然后先放开鼠标左键即可弹出统计结果(此时即可放开Alt键)。
**如果希望如旧版那样不需按住Alt键就可显示选中字数,可将代码14行的_use_alt变量设为false。

20230417 v1.3:感谢 leizingyiu 提供的样式代码,改进脚本显示效果。
20150730 v1.2:增加韩文、日文假名的统计结果;改善显示机制,部分结果为零时不显示;增加按住Alt键机制,避免频繁开关。
20150723 v1.1:丰富统计结果,改善外观效果,改善统计结果消失机制,统计结果可选中,增加统计文本框字数功能。