User:BranDaniMB/global.js

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:PortableCSSPad/code.js',        'u:dev:AjaxDiff/code.js',        'u:dev:QuickComments/code.js',        'u:dev:AjaxRC/code.js',        'u:dev:MediaWiki:ChatOptions/es/code.js',        'u:dev:MediaWiki:Rollback/code.js',        'u:dev:LastEdited/code.js',        'u:dev:MediaWiki:UserCheck/code.js',        'u:dev:QuickCreateUserPage/code.js',    ] });

// check language var language = mw.config.get('wgContentLanguage'); if (language != 'es' && language != "en" && language != 'de') { language = 'en'; } var qtUserPageTemplate = ''; var qtEnableUserPageOverwrite = true;

//Add links to WikiaBar var url= mw.config.get('wgServer') + mw.config.get('wgScriptPath') + "/wiki/" + mw.config.get('wgPageName');

$(function ($) {		var WikiaBar = window.WikiaBar,		   //Purge			$linkPurge = $('Purge'),			$listPurgeItem = $('').append($linkPurge);			//Mercury			$linkMercury = $('Mercury'),			$listMercuryItem = $('').append($linkMercury);		$('#purge-link').parent.remove;		$('#mercury-link').parent.remove;		if (WikiaBar) {			// add link to oasis toolbar			WikiaBar.wikiaBarWrapperObj.find('.tools').append($listPurgeItem);			WikiaBar.wikiaBarWrapperObj.find('.tools').append($listMercuryItem);		} else {			// add link to monobook toolbox			$('#p-tb ul').append($listPurgeItem);			$('#p-tb ul').append($listMercuryItem);		} });