topaz.usermessagechanger = new Object();
var username = mw.config.get('wgUserName');
/* configuration */
// this will replace the old message
topaz.usermessagechanger.newmessage = '<a href="/w/index.php?title=User_talk:'+username+'&redirect=no" title="User talk:'+username+'">Ping</a> (<a href="/w/index.php?title=User_talk:'+username+'&diff=cur" title="User talk:'+username+'">diff</a> / <a href="/w/index.php?title=User_talk:'+username+'&action=history" title="User talk:'+username+'">history</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[1] && divlist[1].className=="usermessage" && (divid=1) ||
divlist[2] && divlist[0].className=="tz-primarySection" && divlist[2].className=="usermessage" && (divid=2)) {
divlist[divid].innerHTML = topaz.usermessagechanger.newmessage;
}
};
//[[User:Roux/usermessagechanger.js]]