User:Rhetoric555/common.js

/* START // var wikiParas = {}; var rq; $("#content a").mouseenter(function {	if (this.attributes["title"]!=undefined&&this.innerHTML==this.attributes["title"].textContent&&wikiParas[this.innerHTML]==undefined) {		var self = this;		rq = setTimeout(function  { var xhr = new XMLHttpRequest; xhr.open("GET", self.href, true); xhr.send; xhr.onreadystatechange = function { if (xhr.readyState == 4) { console.log("Done!"); var parsed = $(xhr.response); wikiParas[self.innerHTML] = parsed.find("p")[0]; console.log(parsed.find("p")[0]); }			}			console.log("Hi!"); }, 1000);	}	else if (wikiParas[this.innerHTML]!=undefined) {		self = this;		rq = setTimeout(function { console.log(wikiParas[self.innerHTML]); });	} }); $("#content a").mouseleave(function { clearInterval(rq) }); // END var tds = $(".navbox td"); for (i=0;i<tds.length;i++) if (tds[i].innerHTML == "") tds[i].remove; var lfg = setTimeout(function { var trs = $(".navbox tr");	for (j=0;j<trs.length;j++)		if (trs[i].innerHTML.replace("\n","").replace("\n","") == "")			trs[i].remove; var tbdivs = $(".navbox div"); for (var k=0;k<tbdivs.length;k++) {	if (tbdivs[k].innerHTML == "")		tbdivs[k].remove; } }, 50); */