User:Nsaum75/monobook.js

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

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