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

Content deleted Content added
Technical 13 (talk | contribs)
m ce
Technical 13 (talk | contribs)
importScript( 'User:Technical 13/Scripts/Gadget-pageCount.js' );// User:Technical 13/Scripts/Gadget-pageCount
Line 16:
importScript( 'User:Technical 13/Scripts/fileRedlinks.js' );// [[User:Technical 13/Scripts/fileRedlinks]]*/
importScript( 'User:Technical 13/Scripts/admin eye.js' );// [[User:Technical 13/Scripts/admin eye]]
importScript( 'User:Technical 13/Scripts/Gadget-pageCount.js' );// [[User:Technical 13/Scripts/Gadget-pageCount]]
importScript( 'User:Technical 13/Scripts/Gadget-BugStatusUpdate.js' );// [[User:Technical 13/Scripts/Gadget-BugStatusUpdate.js]] -- Last stable version
/*
Line 37 ⟶ 38:
/* Shrink all things on my "Contributions" page that no-one has edited since me. *//*
$('.mw-uctop').closest('li').css({"font-size":"6px", "text-decoration":"italic"});
 
/* 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));
}
 
/* Refresh my WatchList page when viewing every minute