Gutenberg Progressive Word Count

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

Autor
quartertone
Installationen heute
0
Installationen gesamt
5
Bewertungen
0 0 0
Version
1.0.1
Erstellt am
25.04.2023
Letzte Aktualisierung
25.04.2023
Größe
2,01 KB
Lizenz
GPL-3.0
Wird angewandt auf

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.