MediaWiki:Gadget-Prosesize.js: Difference between revisions

Content deleted Content added
Exclude style tags from text length
Only apply to the real text content output; this fixes duplicate instances of the stats being shown
Line 106:
var proseValue, refValue, refHtmlValue, proseHtmlValue;
// eslint-disable-next-line no-jquery/no-global-selector
var parserOutput = $( '#mw-content-text .mw-parser-output' );
// eslint-disable-next-line no-jquery/no-global-selector
var prevStats = $( '#document-size-stats' );