User:Gavin.perch/commonsmover.js

function start_mtc { if(wgCanonicalNamespace == 'Image' || wgCanonicalNamespace == 'File') {   addPortletLink('p-tb','http://toolserver.org/~magnus/commonshelper.php?interface=en&image=' +     encodeURIComponent(wgTitle) + '&lang=en&username=' + encodeURIComponent(wgUserName) + '&tusc_user=' +     encodeURIComponent(wgUserName),'move to commons','','move file to commons using commonshelper v1'); } } addOnloadHook(start_mtc);