User:The Crusader of Truth/global.js

//~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~// //                     Welcome to my Global JS page!! // //~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~//

//================================// //====AjaxRC - adds an autorefresh to the recent feed====// //================================//

//Loading gif// window.ajaxIndicator = 'http://images2.wikia.nocookie.net/__cb20100609110347/software/images/a/a9/Indicator.gif'; //Refresh time// window.ajaxRefresh = 20000; //Refresh text and hovertext// window.AjaxRCRefreshText = '20 Seconds'; window.AjaxRCRefreshHoverText = ''; importScriptPage('MediaWiki:AjaxRC/code.js', 'dev'); //================================// //====Display clock - Adds time above "Contribute"====// //================================//

window.DisplayClockJS = '%2I:%2M:%2S %p %2d %{January;February;March;April;May;June;July;August;September;October;November;December}m %Y (UTC)'; importArticles({	type: 'script',	articles: [		// ...		'u:dev:DisplayClock/code.js',		// ...	] });

//================================// //====Last Edited - Last Edited shows who edited last on the top of a page====// //================================//

importArticles({   type: 'script',    articles: [        // ...        'u:dev:LastEdited/code.js',        // ...    ] });

//================================// //===="Message" begains. Adds message tool (Currently disabled)====// //================================//

//Remove this, as well as the other //s to get messages turned back on // Message// // importArticles({ //   type: 'script', //    articles: [ //        'u:dev:Message/code.js' //    ] // });

//================================// //====Null edit begains here====// //================================//

importArticle({   type: 'script',    article: 'u:dev:NullEditButton/code.js' });

//================================// //====Mass Null Edit begains here====// //================================//

nullEditDelay = 1000; importScriptPage('MassNullEdit/code.js', 'dev');

//================================// //====AllPagesHideRedirect -- Hides redirects on all pages ====// //================================//

importScriptPage('MediaWiki:AllPagesHideRedirect/code.js', 'dev');

//================================// //====Contribs on profile scrolldown====// //================================//

///START OF "MY CONTRIBUTIONS"/// mw.loader.using('mediawiki.util', function {	if ($('a[data-id="contributions"]').length || !$('.wds-global-navigation__content-bar').length) return;	var i18n = {		en: "My Contributions",		es: "Mis Contribuciones",		ko: "기여 목록",		pt: "Minhas contribuições",		'pt-br': "Minhas contribuições"	};	i18n = i18n[mw.config.get("wgUserLanguage")] || i18n[mw.config.get("wgContentLanguage")] || i18n.en;	$('.wds-global-navigation__user-menu div:nth-child(3) ul li:nth-child(3)').after('' + i18n + ''); }); ///START OF "SANDBOX"/// mw.loader.using('mediawiki.util', function {	if ($('a[data-id="sandbox"]').length || !$('.wds-global-navigation__content-bar').length) return;	var i18n = {		en: "Sandbox",	};	i18n = i18n[mw.config.get("wgUserLanguage")] || i18n[mw.config.get("wgContentLanguage")] || i18n.en;	$('.wds-global-navigation__user-menu div:nth-child(2) ul li:nth-child(2)').after('' + i18n + ''); }); ///START OF "Projects"/// mw.loader.using('mediawiki.util', function {	if ($('a[data-id="Projects"]').length || !$('.wds-global-navigation__content-bar').length) return;	var i18n = {		en: "Projects",	};	i18n = i18n[mw.config.get("wgUserLanguage")] || i18n[mw.config.get("wgContentLanguage")] || i18n.en;	$('.wds-global-navigation__user-menu div:nth-child(2) ul li:nth-child(2)').after('' + i18n + ''); });

//================================// //====SearchSuggest====// //================================//

importArticles({   type: 'script',    articles: [        'u:dev:SearchSuggest/code.js'    ] });

//================================// //====Viewremoved====// //================================//

//mportScriptPage('MediaWiki:ViewRemoved/code.js', 'dev');

//================================// //====ThreadConfirm====// //================================//

importArticles({   type: 'script',    articles: [        // ...        'u:dev:ThreadConfirm/code.js',        // ...    ] });

//================================// //====Placeholder====// //================================//