User:Random-storykeeper/global.js

batchDeleteDelay = 10;

/* Old file page options */ OFPoptions = {'showlinks': false};

importArticles({   type: 'script',    articles: [ 'u:dev:OldFilePages/code.js', 'u:dev:BackToTopArrow/code.js', 'u:dev:MediaWiki:AjaxBatchDelete/code.2.js', 'u:dev:MediaWiki:PurgeButton/code.js', 'u:dev:MediaWiki:FindAndReplace/code.js'    ] });

// User images notification (taken from NOBODY's global.js) // http://community.wikia.com/wiki/Thread:476904 if (mediaWiki.config.get("wgAction") === "view" && (!window.localStorage || !window.localStorage.getItem('#NoteNotification'))) { (function ($, mw, window) {		var wgServer = mw.config.get("wgServer"),			wgUserName = mw.config.get("wgUserName");		if (typeof wgUserName !== "string") {			$(createNotification);		} else {			var url = wgServer + "/api.php?action=query&format=json&list=usercontribs&uclimit=100000&ucuser=" + window.encodeURIComponent(wgUserName);			$.get(url, function (data) { try { if (data.query.usercontribs.length < 100000) { $(createNotification); }				} catch (e) {} });		}		function createNotification {			// HTML for the notification (no wiki markup allowed here, e.g. link here is not HTML)			var notificationHTML = ' 1) Nitrome Touchy/Controls - page not complete! 2) Convert infoboxes on NWs to new style 3) Slimeys Quest level sec.

CS WIKI THINGS:

1) Formulate wiki policies 2) Outline categorisation/MOS

Edit '; // add notication into the page $('#NoteNotification').remove; $('body').append(notificationHTML); // close the notification when clicking the x			$('#NoteNotification .close-notification').click(function {				$('#NoteNotification').remove;				if (window.localStorage) {					window.localStorage.setItem('#NoteNotification', 'dismissed');				}			}); }	}(jQuery, mediaWiki, window)); }

//Imagemap edit link on file pages importScriptURI('//toolserver.org/~dapete/ime/ime.js');

var MainPageLink = wgMainpage; MainPageLink = MainPageLink.replace(/ /g, "_"); MainPageLink = wgServer + "/" + MainPageLink; var HeaderSiteName = document.getElementsByClassName("wds-community-header__sitename"); if(HeaderSiteName !== undefined) { HeaderSiteName[0].firstElementChild.href = MainPageLink; } var HeaderImage = document.getElementsByClassName("wds-community-header__wordmark"); if(HeaderImage !== undefined) { HeaderImage[0].firstElementChild.href = MainPageLink; }