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.
varstatsTitle='Stats';addOnloadHook(function(){if(wgNamespaceNumber!=-1){varcTime=newDate(),month=cTime.getMonth()+1,year=cTime.getFullYear(),month=month<10?'0'+month:month;mw.util.addPortletLink('p-cactions','http://stats.grok.se/commons.m/'+year+month+'/'+wgPageName,statsTitle,"ca-stats","Se besöksstatistik för sidan");}});