Gutenberg Progressive Word Count

Progressive word counter for Gutenberg HTML ebooks - adapted from https://greasyfork.org/en/scripts/35167

Autor
quartertone
Denně instalací
0
Celkem instalací
5
Hodnocení
0 0 0
Verze
1.0.1
Vytvořeno
25. 04. 2023
Aktualizováno
25. 04. 2023
Size
2,0 KB
Licence
GPL-3.0
Spustit na

This script was adapted/forked from Devorah Allen's script (https://greasyfork.org/en/scripts/35167) that was no longer working, and appeared to be abandoned.

  • Corrected the issue causing the script to fail (@include https:// --> include *://)
  • Cleaned up the code: I removed the reliance on Jquery, as all the desired functions can be cleanly and simply implemented in vanilla javascript.
  • Adjusted the word counting algorithm to be more accurate.
  • Wrapped script in anonymous function to avoid collisions.