User:Wargo/common.js

jQuery(document).ready( function { var ns = mw.config.get('wgNamespaceNumber'); var title = mw.config.get('wgPageName');

mw.loader.using('mediawiki.util').done(function{	if(mw.config.get('wgCanonicalSpecialPageName') == "Translate")	{	mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Wargo/Scripts/Translate.js&action=raw&ctype=text/javascript');	}	if (mw.config.get('wgPageName').indexOf('/pl') === -1 && ns >= 0 && $('.mw-pt-languages').length === 0)	{	mw.util.addPortletLink('p-cactions', '/w/index.php?title='+title+'/pl&action=edit&summary=Translated&preload='+title, 'Przetłumacz');	} });

$('.SpecialPageInfo').removeClass('SpecialPageInfo').attr('style', 'text-size: smaller'); });