User:Tgr/monobook.js

if(mw.config.get('wgCanonicalNamespace') == "Image") addOnloadHook(function chlink { var href = "http://tools.wikimedia.de/~magnus/commonshelper.php?language=en&project=wikipedia&image=" + mw.config.get('wgPageName')    + "&username=Tgr&commonsense=1&reallydirectupload=1";  var li = addPortletLink('p-tb', href, 'Move to Commons', 't-movetocommons', , , document.getElementById('p-tb').getElementsByTagName('li')[0]);  li.getElementsByTagName('a')[0].target = '_blank'; });