User:Technical 13/common.js: Difference between revisions

Content deleted Content added
Technical 13 (talk | contribs)
This should do it on the top and bottom... I may add some formatting and pluralization anal retentive stuff later...
Technical 13 (talk | contribs)
wrap it in an if statement to not try and replace text which doesn't exist.
Line 39:
 
/* show result count if all results are shown on one page */// on [[Special:WhatLinksHere]]
if($('div#mw-content-text').html().search(/previous [\d,]* \| next [\d,]*/) !== -1){
$('div#mw-content-text').html($('div#mw-content-text').html().replace(/previous [\d,]* \| next [\d,]*/g, 'showing all ' + $('ul#mw-whatlinkshere-list li').length + ' results'));
}
 
/* Refresh my WatchList page when viewing every minute