Gutenberg Progressive Word Count

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

Forfatter
quartertone
Daglige installasjoner
0
Totale installasjoner
5
Vurderinger
0 0 0
Versjon
1.0.1
Lagd
25.04.2023
Oppdatert
25.04.2023
Size
2 kB
Lisens
GPL-3.0
Gjelder

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.