User:Froth/refdeskmodv2.js

if (window.addEventListener) // I don't at all trust addOnloadHook in wikibits.js window.addEventListener('load', refdeskmodv2, false); else if (window.attachEvent) window.attachEvent('onload', refdeskmodv2);

function refdeskmodv2 { if(location.href.indexOf("Wikipedia:RD") != -1 || location.href.indexOf("Wikipedia:Reference_desk") != -1 || location.href.indexOf("Wikipedia:Reference%20desk") != -1) { rdsubpagename = document.getElementById("spplaceholder").innerHTML;

var rdcolors = new Array; for (i=0;i<10;i++) rdcolors[i] = document.getElementById("refcolor" + i).innerHTML;

var rddesknames = new Array("Science", "Mathematics", "Computing", "Humanities", "Language", "Entertainment", "Miscellaneous", "Archives");

var writeWhat = ' ';

document.getElementById("bodyContent").innerHTML += writeWhat;

}

}

function FROTHlinkTov2(wppage, innertext) { return '' + innertext + ''; }