Gutenberg Progressive Word Count

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

Maker
quartertone
Dagelijks aantal installaties
0
Totaal aantal installaties
5
Beoordelingen
0 0 0
Versie
1.0.1
Gemaakt op
25-04-2023
Bijgewerkt op
25-04-2023
Grootte
2,01 KB
Licentie
GPL-3.0
Wordt toegepast op

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.