AO3 Word Count Script

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

Stan na 18-03-2023. Zobacz najnowsza wersja.

Autor
AntonDumov
Oceny
0 0 0
Wersja
2
Utworzono
18-03-2023
Zaktualizowano
18-03-2023
Rozmiar
2,84 KB
Licencja
MIT
Dotyczy

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.