AO3 Word Count Script

Adds word counts to chapter links on AO3 Chapter Index pages and in Stats on each chapter page.

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
作者
AntonDumov
1日のインストール数
0
累計インストール数
122
評価
0 0 0
バージョン
4.1
作成日
2023/03/18
更新日
2023/03/29
大きさ
5.06KB
ライセンス
MIT
対象サイト

The script adds word counts to chapter links on AO3 Chapter Index pages and in Stats on every chapter page. 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 30 days.