User:Till Kraemer/wordcount.js: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

25 February 2024

  • curprev 16:1616:16, 25 February 2024Till Kraemer talk contribs 6,345 bytes +6,345 Created page with "//<nowiki> // From https://en.wikipedia.org/wiki/User:Caorongjin/wordcount.js // This code is based on https://en.wikipedia.org/wiki/User:Dr_pda/prosesize.js // but adds CJK support (http://stackoverflow.com/questions/2315488) and support // for references and other lists. // function getWordCount(html) { var str = html.innerHTML.replace(/(<([^>]+)>)/ig,"").trim(); var wordCount = 0; var arr = str.match(/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FFF\uF900-\uFAFF\u3..."