User:Walrus068/global.js

document.addEventListener("DOMNodeInserted", function (a) {   if (a.target.hasOwnProperty("src")) {        if (a.target.src.match(/http:\/\/runescape\.wikia\.com\/index.php\?title=(MediaWiki:Common\.js\/|User:)(displayTimer\.js|embedirc\.js|exchangeintro\.js|updateintro\.js|navigationbars\.js|navigationbars2\.js|collapsibletables\.js|standardeditsummaries\.js|ajaxrefresh\.js|countdowntimer\.js|embedding\.js|sitemeter\.js|chat\.js|sitenotice\.js|accountNavigation\.js|pagetitle\.js|Konami\.js|autosort\.js|collapsiblesidebarportlets\.js|Suppa_chuppa\/bubble\.js)/gi)) {            a.target.parentNode.removeChild(a.target)        }    } }); var displayTimerInterval = 1e3; (function (a, b, c, d, e, f) {   var g = d.indexOf(".js") > -1;    if (c === "edit" || c === "submit") {        if (g) {            e.push("http://jsfiddle.net/js/beautifier.js");            addOnloadHook(function  { var a = b.getElementById("wpTextbox1"); $('').insertBefore(a).click(function {                    a.value = js_beautify(a.value, { space_after_anon_function: true, preserve_newlines: false, indent_size: 4, indent_char: " " })               });                a.onkeydown = function (a) { if (a.keyCode === 9) { insertTags("   ", "", ""); return false }               }            })        }        addOnloadHook(function  { var a = document.createElement("div"), b = document.createElement("input"), c = document.createElement("input"), d = document.createElement("input"), e = document.createElement("input"), f = document.getElementById("wpTextbox1"); e.onclick = function { var a = RegExp(b.value, c.value); f.value = f.value.replace(a, d.value); return false };           e.type = "button"; e.value = "Perform"; a.appendChild(b); a.appendChild(c); a.appendChild(d); a.appendChild(e); f.parentNode.insertBefore(a, f)       })    }    for (i = 0; i < e.length; i = i + 1) {        importScriptURI(e[i])    }    if (skin === "monobook" && (g || d.indexOf(".css") > -1)) {        addOnloadHook(function  { var a = document.createElement("li"), b = document.createElement("a"); b.href = wgScript + "?title=" + d + "&action=raw&ctype=text/" + (g ? "javascript" : "css"); b.innerHTML = "raw"; a.appendChild(b); document.getElementById("p-cactions").childNodes[3].childNodes[1].appendChild(a) })   } }(window, document, wgAction, wgPageName, ["http://walrus068.wikia.com/index.php?title=User:Walrus068/undominussexi.js&action=raw&ctype=text/javascript", "http://walrus068.wikia.com/index.php?title=User:Walrus068/displayTimersexi.js&action=raw&ctype=text/javascript", "http://walrus068.wikia.com/index.php?title=User:Walrus068/quickpreviewsexi.js&action=raw&ctype=text/javascript", "http://runescape.wikia.com/index.php?title=User:Walrus068/mass_rollbacksexi.js&action=raw&ctype=text/javascript"]))