User:Year2000Prob/usermessagechanger.js

// The following code is all written by en:User:Topaz

topaz.usermessagechanger = new Object;

/* configuration */ // this will replace the old message topaz.usermessagechanger.newmessage = "You've got mail! (Is it spam?)"; /* end configuration */

topaz.usermessagechanger.oldonload = window.onload; window.onload = function { if (typeof topaz.usermessagechanger.oldonload == "function") topaz.usermessagechanger.oldonload; var divlist = topaz.util.getobj("bodyContent").getElementsByTagName("div"); for(var i=0; i<divlist.length; i++) { if (divlist[i].className == "usermessage") { divlist[i].innerHTML = topaz.usermessagechanger.newmessage; } } }; // End Topaz Code