MV Trying to Remove Text Outlines only in Message Window

Hello!
I'm trying to remove the text outlines completely in message windows and I found this line of plugin to work, but it removes all the outlines in everything, not just the Message Window.

Code:
Bitmap.prototype._drawTextOutline = function() { };

If it's possible, I would want to only remove the text oulines in these windows:
Message Window, Options Window, Save Window

Thank you in advance!
TSR_TextColorAddOn by The Northern Frog has commands to set a separate outline color, meaning you could just add one to make the outline the same color as the rest of the font, pretty much "removing" it.

Sadly I don't know how to script myself, thought this might be an alternative you could consider.
It's probably best to alias createContents and modify the new bitmap then, since you don't want to modify all bitmaps. This should work:

JavaScript:
void function(alias){
    Window_Message.prototype.createContents = function(){
        alias.call(this);
        this.contents._drawTextOutline = () => {};
    }
}(Window_Message.prototype.createContents);

void function(alias){
    Window_Options.prototype.createContents = function(){
        alias.call(this);
        this.contents._drawTextOutline = () => {};
    }
}(Window_Options.prototype.createContents);

void function(alias){
    Window_SavefileList.prototype.createContents = function(){
        alias.call(this);
        this.contents._drawTextOutline = () => {};
    }
}(Window_SavefileList.prototype.createContents);
It's probably best to alias createContents and modify the new bitmap then, since you don't want to modify all bitmaps. This should work:

JavaScript:
void function(alias){
    Window_Message.prototype.createContents = function(){
        alias.call(this);
        this.contents._drawTextOutline = () => {};
    }
}(Window_Message.prototype.createContents);

void function(alias){
    Window_Options.prototype.createContents = function(){
        alias.call(this);
        this.contents._drawTextOutline = () => {};
    }
}(Window_Options.prototype.createContents);

void function(alias){
    Window_SavefileList.prototype.createContents = function(){
        alias.call(this);
        this.contents._drawTextOutline = () => {};
    }
}(Window_SavefileList.prototype.createContents);
Thank you! I will try this one out.

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-remove-text-outlines-only-in-message-window.162951/