User:Crackerjack/monobook.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") { addPortletLink("p-cactions","javascript:movetocommons","move to commons","ca-mcom"); } } addOnloadHook(start);