Gutencount

Accurate word counter for Gutenberg texts

目前為 2023-04-22 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
quartertone
評價
0 0 0
版本
1.6.0
建立日期
2023-04-11
更新日期
2023-04-22
尺寸
4.5 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