User:Hurricanefan25/MtCnew.js

function movetocommons { var url="http://bots.wmflabs.org/~richs/commonshelper2.php?language=en&project=wikipedia&file=" + encodeURIComponent( wgTitle ) + "&use_tusc=1&tusc_user=" + encodeURIComponent( wgUserName ); window.open(url); } function start { if(wgCanonicalNamespace == "Image" || wgCanonicalNamespace == "File" || wgCanonicalNamespace == "Media" ) { addPortletLink("p-cactions","javascript:movetocommons","MtC","ca-mcom2"); } } $(start);