User:Technical 13/Scripts/Gadget-pageCount.js

/* show result count if all results are shown on one page */ if ( $( 'div#mw-content-text' ).html.search( /previous [\d,]* \| next [\d,]*/ ) !== -1 ) { var allPagesReplace = 'showing '; if ( $( 'ul#mw-whatlinkshere-list li' ).length === 1 ) { allPagesReplace += 'the only '; } else if ( $( 'ul#mw-whatlinkshere-list li' ).length > 1 ) { allPagesReplace += 'all ' + $( 'ul#mw-whatlinkshere-list li' ).length; }   allPagesReplace += ' result'; if ( $('ul#mw-whatlinkshere-list li' ).length > 1 ) { allPagesReplace += 's'; }  $( 'div#mw-content-text' ).html( $( 'div#mw-content-text' ).html.replace( /previous [\d,]* \|  next [\d,]*/g, allPagesReplace ) ); }