AO3 Word Count Script

Adds word counts to chapter links on AO3 Chapter Index pages.

目前為 2023-03-19 提交的版本,檢視 最新版本

作者
AntonDumov
評價
0 0 0
版本
3.2
建立日期
2023-03-18
更新日期
2023-03-19
尺寸
2.8 KB
授權條款
MIT
腳本執行於

The script adds word counts to chapter links on AO3 Chapter Index pages. The script uses regular expressions and DOM manipulation to extract the word count from the HTML content of each chapter and adds it as a span element to the chapter link.

The script also implements caching of word counts to reduce the number of HTTP requests made to AO3. Cached word counts are stored in the user's local storage and are retrieved and used if they are not expired. The cache duration is set to 24 hours.