User:Jack McKalling/hydra.js

/* Increase visible width of page: */ var jmck_domNode = document.getElementById("global-wrapper"); if (jmck_domNode != null) { if (jmck_domNode.className == "with-siderail") { jmck_domNode.className = ""; } } jmck_domNode = document.getElementById("siderail"); if (jmck_domNode != null) { jmck_domNode.parentNode.removeChild(jmck_domNode); } jmck_domNode = null;

/* Nuke absolute+ positioning on userpages */ if (mw.config.get("wgCanonicalNamespace") === "User" && location.search.indexOf("position=allow") < 0) { $(document).ready(function {		jmck_domNode = null;		$("#firstHeading").nextAll.find("[style*='position: absolute'], [style*='position:absolute'], " + "[style*='position: fixed'], [style*='position:fixed']").each(function { if (jmck_domNode === null) { jmck_domNode = document.createElement("span"); // show warning jmck_domNode.style.float = "right"; jmck_domNode.style.textIndent = "24px"; jmck_domNode.style.whiteSpace = "nowrap"; jmck_domNode.style.fontSize = "16px"; jmck_domNode.innerHTML = " !contains positioning!"; document.getElementsByTagName("h1")[0].appendChild(jmck_domNode); }		}).css("display", "none");	}); }

/* Include toggle script for showing/hiding patrol requests */ //mw.loader.load('/index.php?title=User:Jack_McKalling/patroller-requests/toggle-requests.js&action=raw&ctype=text/javascript');