topaz.usermessagechanger = new Object();

/* configuration */
// this will replace the old message
topaz.usermessagechanger.newmessage = 'You have <a href="/w/index.php?title=User_talk:'+topaz.wputil.username()+'&amp;redirect=no" title="User talk:'+topaz.wputil.username()+'">new spam</a> (<a href="/w/index.php?title=User_talk:'+topaz.wputil.username()+'&amp;diff=cur" title="User talk:'+topaz.wputil.username()+'">last change</a>).';
/* 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");
  var divid;
  if (divlist && divlist.className=="usermessage" && (divid=1) ||
      divlist && divlist.className=="tz-primarySection" && divlist.className=="usermessage" && (divid=2)) {
    divlist.innerHTML = topaz.usermessagechanger.newmessage;
  }
};