Changes

no edit summary
Line 511: Line 511:     
function addPageStats() {
 
function addPageStats() {
if (mw.user.isAnon() || !$('.mw-indicators').length) return;
+
if (!$('.mw-indicators').length || !mw.user.isAnon || mw.user.isAnon()) return;
 
var newpp = $('.mw-parser-output').contents().filter(function () { return this.nodeType === 8 && this.data.match(/Post‐expand include size: (.+?)\/(.+?) bytes/); });
 
var newpp = $('.mw-parser-output').contents().filter(function () { return this.nodeType === 8 && this.data.match(/Post‐expand include size: (.+?)\/(.+?) bytes/); });
 
if (!newpp.length) return;
 
if (!newpp.length) return;
7,212

edits