Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
// [[User:Ais523/hidetopcontrib.js]]// By a suggestion by [[User:Discospinster]]// This script color-codes lines according to who has the top contribution for a page.//<pre><nowiki>functionhidetopcontrib(){vari,li,a;li=document.getElementById("bodyContent");li=li.getElementsByTagName("li");i=-1;a=newArray();while(++i<li.length){vars,t;t=li[i].innerHTML.match(/"\/wiki\/([^"]*)"/)[1];if(li[i].getElementsByTagName("strong").length>0)s="none";elses="";if(a[t]!=undefined)s=a[t];elsea[t]=s;if(s!="")li[i].style.display=(li[i].style.display=="none"?"list-item":"none");}}$(function(){if((location.href.indexOf("Special:Contributions")!=-1||location.href.indexOf("Special%3AContributions")!=-1)&&location.href.indexOf("&ais523")==-1&&location.href.indexOf("?ais523")==-1)mw.util.addPortletLink('p-cactions','javascript:hidetopcontrib()','show/hide top','ca-hidetop',"Show/hide pages for which you're the top contributor",'');});//</nowiki></pre>//[[Category:Wikipedia scripts]]// </source> [[Category:Wikipedia scripts]]$(function(){if(wgTitle.indexOf("/")!=-1||document.title.indexOf("- History -")!=-1)//no subpages or historyreturn;if(wgCanonicalNamespace=="User"||wgCanonicalNamespace=="User_talk"){varusername=encodeURIComponent(wgTitle);mw.util.addPortletLink("p-cactions",wgServer+"/wiki/Special:Contributions/"+username,"contribs","ca-contrib","User contributions");mw.util.addPortletLink("p-cactions","http://tools.wikimedia.de/~interiot/cgi-bin/Tool1/wannabe_kate?username="+username+"&site=commons.wikimedia.org","count","ca-editcount","Edit count from Interiot's Tool1");}});mw.loader.load('https://commons.wikimedia.org/w/index.php?title=User:Patstuart/Flickrreview.js'+'&action=raw&ctype=text/javascript');//[[MediaWiki talk:Quick-delete.js]]importScript('MediaWiki:Quick-delete.js');//Twinkle betaimportScript('User:Kanonkas/warn.js');importScript('User:Maximr/morebits.js');