User:Colacao/monobook.js

// User:Krimpet/CH2.js importScript('User:Krimpet/CH2.js');

function movetocommons { var url="http://tools.wikimedia.de/~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);