Javascript code:
function OnEvent_Initialize(bMessengerStart) { OnEvent_ContactListWndCreated(); }
function OnEvent_SigninReady(sEmail) { OnEvent_ContactListWndCreated(); }
function OnEvent_ContactListWndCreated() {
if (Messenger.ContactListWndHandle === 0) return;
var title = getTitle();
var lpsz = Interop.Allocate(2*title.length+2);
lpsz.WriteString(0, title);
Interop.Call('user32', 'SendMessageW', Messenger.ContactListWndHandle, 0xC /* WM_SETTEXT */, 0, lpsz.DataPtr);
}
function getTitle(){
if(Messenger.MyEmail == "blah@live.com") return "Account 1";
else if(Messenger.MyEmail == "moreblah@live.com") return "Account 2";
else return "Your WLM has been hacked!";
}