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.
//
function setSpecialUploadTemplate()
{         
 var uploadURL = 'http://commons.wikimedia.org/w/index.php?title=Special:Upload&uselang=ownwork';
 var uploadURL2 = 'http://commons.wikimedia.org/wiki/Special:Upload';

 // I upload mostly my own work
 //document.getElementById('n-upload').firstChild.href = uploadURL;

 // preload input form
 if(window.location.href == uploadURL || window.location.href == uploadURL2)
 {
  var t = new Date();
  var m = t.getMonth(); 
  var m_names = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
  try {
  var editbox = 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"
                    + "}"+"}";
 
      var licensemenu = 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.
  {
    var i,li,a;
    li=document.getElementById("bodyContent");
    li=li.getElementsByTagName("li");
    i=-1;
    a=new Array();
    while(++i<li.length)
    {
      var s,t;
      var html = li[i].innerHTML;
      var match = html.match(/"\/wiki\/([^"]*)"/);
      if (!match)
        match = html.match(/"\/w\/index.php\?title=([^"]*)&amp;redirect=no"/);
      t = match[1];
      var spans = li[i].getElementsByTagName("span");
      var topspanfound = false;
      for (var j = 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"); else a[t]=s;
      li[i].innerHTML="<SPAN STYLE='background-color:"+s+"'>"+li[i].innerHTML+"</SPAN>";
    }
  }
});
//</nowiki></pre>
//[[Category:Wikipedia scripts]]