User:Hgetnet/common.js

function move { if (wgNamespaceNumber == 6) { mw.util.addPortletLink("p-cactions", "http://toolserver.org/~magnus/commonshelper.php?interface="+wgContentLanguage+"&image="+wgTitle+"&lang=en&commonsense=1&reallydirectupload=1", "To Commons"); } } addOnloadHook(move);