As long as you remove all MsgPlus.CreateWnd functions that refer to it.
I did just write a quick script at work, it is as yet untested though:
js code:
var WM_CLOSE = 0x10; // Doesn't need to be defined, but it's just there to explain what it is
function OnEvent_Initialize(){ // On Script start
if(Messenger.MyStatus > 1){ // If we are signed in
OnEvent_SigninReady(Messenger.MyEmail); // Call the event OnEvent_SigninReady
}
}
function OnEvent_SigninReady(){ // When we have signed in
MsgPlus.AddTimer(Messenger.MyUserId, 100); // Start searching using a timer. Using Messenger.MyUserId as the timer's ID. Will be unique to the user, which is useful for checking it was added by the currently logged in user
}
function OnEvent_Timer(ID){ // When the timer fires
var hWnd = Interop.Call("user32", "FindWindowW", "msblpopupmsgwclass", 0); // Find the toast window
if(hWnd != null){ // If we found one
Interop.Call ( 'user32' , 'SendMessageW' , hWnd , WM_CLOSE, 0 , 0 ) ; // Close it
}
MsgPlus.AddTimer(ID, 100); // Repeat the timer
}
function OnEvent_Uninitialize(){ // On script stopped
MsgPlus.CancelTimer(Messenger.MyUserId); // Cancel outstanding timers
}
function OnEvent_Signout(){ // When we have signed out
OnEvent_Uninitialize(); // Cancel outstanding timers
}