User:Walrus068/global.js

// var query = {}; (function (a, b, i) {	"use strict";	var badimports = ["/index.php?title=MediaWiki:Common.js/copyright.js&action=raw&ctype=text/javascript", "/index.php?title=MediaWiki:Common.js/displayTimer.js&action=raw&ctype=text/javascript", "/index.php?title=MediaWiki:Common.js/embedirc.js&action=raw&ctype=text/javascript", "/index.php?title=MediaWiki:Common.js/exchangeintro.js&action=raw&ctype=text/javascript", "/index.php?title=MediaWiki:Common.js/updateintro.js&action=raw&ctype=text/javascript", "/index.php?title=MediaWiki:Common.js/navigationbars.js&action=raw&ctype=text/javascript", "/index.php?title=MediaWiki:Common.js/navigationbars2.js&action=raw&ctype=text/javascript", "/index.php?title=MediaWiki:Common.js/collapsibletables.js&action=raw&ctype=text/javascript", "/index.php?title=MediaWiki:Common.js/standardeditsummaries.js&action=raw&ctype=text/javascript", "/index.php?title=MediaWiki:Common.js/ajaxrefresh.js&action=raw&ctype=text/javascript", "/index.php?title=MediaWiki:Common.js/countdowntimer.js&action=raw&ctype=text/javascript", "/index.php?title=MediaWiki:Common.js/embedding.js&action=raw&ctype=text/javascript", "/index.php?title=MediaWiki:Common.js/sitemeter.js&action=raw&ctype=text/javascript", "/index.php?title=MediaWiki:Common.js/chat.js&action=raw&ctype=text/javascript", "/index.php?title=MediaWiki:Common.js/sitenotice.js&action=raw&ctype=text/javascript", "/index.php?title=MediaWiki:Common.js/accountNavigation.js&action=raw&ctype=text/javascript", "/index.php?title=MediaWiki:Common.js/pagetitle.js&action=raw&ctype=text/javascript", "/index.php?title=MediaWiki:Common.js/Konami.js&action=raw&ctype=text/javascript", "/index.php?title=MediaWiki:Common.js/autosort.js&action=raw&ctype=text/javascript", "/index.php?title=User:Suppa_chuppa/bubble.js&action=raw&ctype=text/javascript", "/index.php?title=MediaWiki:Common.js/collapsiblesidebarportlets.js&action=raw&ctype=text/javascript"]; for (i = 0; i < a.length; i = i + 1) { b = a[i].split("="); query[b[0]] = b[1]; }	document.addEventListener("DOMNodeInserted", function (a) {               var target = a.target;		if (target.localName === "script") {			if (target.src && badimports.indexOf(target.src) > -1) {				target.parentNode.removeChild(target);			}		}	}, false); }(location.search.substring(1).split("&"))); const refreshDate = false, addDate = false, importScriptURI = function (uri) {	var script = document.createElement("script");	script.src = uri;	script.type = "text/javascript";	document.head.appendChild(script);	return script; }; importScriptURI("http://walrus068.wikia.com/index.php?title=User:Walrus068/undominus.js&action=raw&ctype=text/javascript"); importScriptURI("http://walrus068.wikia.com/index.php?title=User:Walrus068/displayTimer.js&action=raw&ctype=text/javascript"); importScriptURI("http://walrus068.wikia.com/index.php?title=User:Walrus068/quickPreview.js&action=raw&ctype=text/javascript"); importScriptURI("http://walrus068.wikia.com/index.php?title=User:Walrus068/rollbackwarn.js&action=raw&ctype=text/javascript"); importScriptURI("http://runescape.wikia.com/index.php?title=User:Walrus068/mass_rollbacksexi.js&action=raw&ctype=text/javascript"); Node.prototype.appendChildren = function { var i, l, a = arguments, d = document.createDocumentFragment; if (a[0] instanceof Array) { a = a[0]; }	l = a.length; for (i = 0; i < l; i = i + 1) { d.appendChild(a[i]); }	this.appendChild(d); }; addEventListener("load", function {	"use strict";	var editBox = document.getElementById("wpTextbox1"),		editForm = editBox ? editBox.parentNode : null,		isEditing = wgAction === "edit" || wgAction === "submit",		isMonoBook = skin === "monobook",		isJavaScript = wgPageName.indexOf(".js") === wgPageName.length - 3,		isCss = wgPageName.indexOf(".css") === wgPageName.length - 4,		isSpecialPage = wgNamespaceNumber === -1,		addRegexForm = function  {			var a = document.createElement("div"),				b = document.createElement("input"),				c = document.createElement("input"),				d = document.createElement("input"),				e = function  {					return false;				};			b.onsubmit = e;			c.onsubmit = e;			d.type = "button";			d.value = "Perform";			d.onclick = function  {				var a = b.value.indexOf("/"),					d = b.value.lastIndexOf("/");				editBox.value = editBox.value.replace(new RegExp(b.value.substring(a + 1, d), b.value.substring(d + 1)), c.value); return false; };			a.appendChildren(b, c, d); editForm.insertBefore(a, editBox); },		addRawLink = function { var a = document.createElement("li"), b = document.createElement("a"); b.innerHTML = "raw"; b.href = wgScript + "?action=raw&ctype=text/javascript&title=" + wgPageName; a.appendChild(b); document.getElementsByClassName("pBody")[0].childNodes[1].appendChild(a); };	if (!isSpecialPage && isMonoBook) { addRawLink; } }, false);