User:Angus Guilherme/common.js

ImportScript('User:Equazcion/SidebarHistoryTools.js'); //User:Equazcion/SidebarHistoryTools /* User:Equazcion/ScriptInstaller.js */ importScript( 'User:Equazcion/ScriptInstaller.js' ); importScript('User:Anomie/useridentifier.js'); ImportScript('User:Odie5533/SnipManager.user.js'); ImportScript('User:2D/commonsmover.js'); ImportScript('User:PleaseStand/userinfo.js'); importScript('User:Lupin/recent2.js'); window.catALotPrefs = {editpages: true}; mw.loader.load('jquery.ui'); mw.loader.load('//commons.wikimedia.org/w/index.php?action=raw&ctype=text/javascript&title=MediaWiki:Gadget-Cat-a-lot.js'); mw.loader.load('//commons.wikimedia.org/w/index.php?action=raw&ctype=text/css&title=MediaWiki:Gadget-Cat-a-lot.css', 'text/css'); function movetocommons { var url="http://bots.wmflabs.org/~richs/commonshelper.php?interface=en&image=" + encodeURIComponent( wgTitle ) + "&lang=en&username=" + encodeURIComponent( wgUserName ) + "&tusc_user=" + encodeURIComponent( wgUserName ); window.open(url); } function start { if(wgCanonicalNamespace == "Image" || wgCanonicalNamespace == "File") { mw.util.addPortletLink("p-cactions","javascript:movetocommons","move to commons","ca-mcom"); } } $(start);