User:BartekChom/vector.js

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