User:Divy/monobook.js

importScript('User:AzaToth/twinkle.js');

function movetocommons { var url="http://toolserver.org/~magnus/commonshelper.php?interface=en&image=" + wgTitle + "&lang=en&username=" + wgUserName + "&tusc_user=" + wgUserName ; w=window.open(url); } function start { if(wgCanonicalNamespace == "Image" || wgCanonicalNamespace == "File") { mw.util.addPortletLink("p-cactions","javascript:movetocommons","move to commons","ca-mcom"); } } $(start);