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.
//// Insert a personalized Texttemplate into the Special:Upload edit box.//functionsetSpecialUploadTemplate(){varuploadURL='http://commons.wikimedia.org/w/index.php?title=Special:Upload&uselang=ownwork';varuploadURL2='http://commons.wikimedia.org/wiki/Special:Upload';// I upload mostly my own work//document.getElementById('n-upload').firstChild.href = uploadURL;// preload input formif(window.location.href==uploadURL||window.location.href==uploadURL2){vart=newDate();varm=t.getMonth();varm_names=newArray("January","February","March","April","May","June","July","August","September","October","November","December");try{vareditbox=document.getElementById('wpUploadDescription');if(window.location.href==uploadURL){editbox.value="{"+"{Information\n"+"|Description={{en| }}\n"+"|Source={{Own}}\n"+"|Date="+t.getDate()+" "+m_names[m]+" "+t.getFullYear()+"\n"+"|Author=[[User:Parkerdr|Dave Parker]]\n"+"|Permission=See license\n"+"|other_versions=\n"+"}"+"}";varlicensemenu=document.getElementById('wpLicense');licensemenu.value="self|GFDL|cc-by-3.0";}else{editbox.value="{"+"{Information\n"+"|Description={"+"{en| }"+"}\n"+"|Source=Scanned postcard\n"+"|Date="+t.getDate()+" "+m_names[m]+" "+t.getFullYear()+"\n"+"|Author=[[User:Parkerdr|Dave Parker]]\n"+"|Permission=See license\n"+"|other_versions=\n"+"}"+"}\n"+"{"+"{PD-US}"+"}";}}catch(e){}}}$(setSpecialUploadTemplate);// [[User:Ais523/topcontrib.js]]// This script color-codes lines according to who has the top contribution for a page.//<pre><nowiki>$(function(){if((location.href.indexOf("Special:Contributions")!=-1||location.href.indexOf("Special%3AContributions")!=-1)&&location.href.indexOf("&ais523")==-1&&location.href.indexOf("?ais523")==-1)// the ais523 in the line above is meant to be ais523, not your username; it's// to avoid a clash with a couple of other scripts I've written. Feel free to// expand it to avoid clashes with other contribs-manipulating scripts, though.{vari,li,a;li=document.getElementById("bodyContent");li=li.getElementsByTagName("li");i=-1;a=newArray();while(++i<li.length){vars,t;varhtml=li[i].innerHTML;varmatch=html.match(/"\/wiki\/([^"]*)"/);if(!match)match=html.match(/"\/w\/index.php\?title=([^"]*)&redirect=no"/);t=match[1];varspans=li[i].getElementsByTagName("span");vartopspanfound=false;for(varj=0;j<spans.length;j++){if(spans[j].className=="mw-uctop"){topspanfound=true;break;}}s=topspanfound?"#CCCCFF":"#FFCCCC";if(a[t]!=undefined)s=(a[t]=="#CCCCFF"?"#CCFFFF":"#FFFFCC");elsea[t]=s;li[i].innerHTML="<SPAN STYLE='background-color:"+s+"'>"+li[i].innerHTML+"</SPAN>";}}});//</nowiki></pre>//[[Category:Wikipedia scripts]]