Gutencount

Accurate word counter for Gutenberg texts

当前为 2025-07-29 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
quartertone
评分
0 0 0
版本
1.6.6
创建于
2023-04-11
更新于
2025-07-29
大小
5.1 KB
许可证
GPL-3.0
适用于

An accurate word counter for Gutenberg ebook texts.

  • On a Guterberg ebook page it will count the ebook text, excluding the Gutenberg disclaimer and legalese.
    • If you are on the main ebook page, the results will be appended just below the cover image.
    • If you are on any of the reading pages, the counter will appear in a fixed box in the top right corner of the window.
  • On the Gutenberg search results page or the subject page, will append the word count to all search results! (So, if you're looking for a short short story, you don't have to go counting every book that comes up in search.)
  • Update(2023-04-11): Word/character count will now be displayed in a fixed box in the upper right corner of the window, instead of a pop-up alert. Double click to dismiss. If you select some text, it will count the words in the selection.
  • NEW(2023-04-14): When in the HTML page of on ebook, click on the chapter heading to get a word count for that chapter.
  • Words are counted thus: text.trim().split(/--|[\s\*—]+/).length