User:Poxnar/vector.js
Jump to navigation
Jump to search
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.
The accompanying .css page for this skin can be added at User:Poxnar/vector.css. |
/// statistics for the page
function stats() {
if (wgCanonicalNamespace == "Special")
return;
var currentTime = new Date();
var month = currentTime.getMonth() + 1;
var year = currentTime.getFullYear();
if (month < 10)
month = '0' + month;
mw.util.addPortletLink('p-cactions', 'http://stats.grok.se/commons.m/'+ year + month + '/' + wgPageName, "stats", "ca-stats", "Show statistics for the page");
}
$(stats);