User:SSethi (WMF)/common.js

var totalWords = $("#mw-content-text").text.split(' ').length; var readingTime = $("#mw-content-text").text.split(' ').length / 200; var readingTimeRoundedOff = Math.round(readingTime); $( "#bodyContent" ).prepend( " Estimated reading time of this article : " + readingTimeRoundedOff + " minutes " );