MZ Hide actor's names in BattleStatus

Hey, folks. I've searched high and low and gotten close, but no cigar. I simply want to hide the actor's names on the battle screen and leave the portrait and other elements. ChatGPT says to pop this into a plugin, and I did that, but the name still appears in the Battle Status window.

Window_BattleStatus.prototype.drawActorName = function(actor, x, y, width) {
// this.drawText(actor.name(), x, y, width, 'left'); // Comment this line to hide the name
};

Looks like it makes sense, I think? I even tried blindly tweaking parts of it, but the name is still there.

...or should I just download a big, fat, battle customization plugin with all the bells and whistles in case I want to change something else, too? (I feel guilty posting in here.) That seems a bit overkill, though, when I don't have many big problems with MZ's battle interface otherwise. At least, any I haven't already fixed with a handful of tiny plugins.

Thanks so much!
Just as a note:
ChatGPT says
It's never a good idea to ask generative AI to code for you. The point of them is to "generate" - to make things up. Between the nonsense code they tend to produce and the fact that they can't reliably solve grade school math, I don't see how it makes sense to consider that a resource. 😛

Case in point: your ChatGPT is telling you to overwrite a function that doesn't exist in that window type.

Also the section rules prohibit asking for support with AI-generated code.

Try this: copy into a text editor, save as a *.js file, include as a plugin.
Code:
Window_BattleStatus.prototype.placeActorName = function(actor, x, y) {};
Oops. I missed that in the rules. I hate AI and have seen it's made-upedness, but a friend insisted and looked it up for me, so I thought it was pertinent information. Sorry. I'll learn from this and hopefully someone else will, too.

THANK YOU VERY MUCH! That's perfect.
Just as a note:

It's never a good idea to ask generative AI to code for you. The point of them is to "generate" - to make things up. Between the nonsense code they tend to produce and the fact that they can't reliably solve grade school math, I don't see how it makes sense to consider that a resource. 😛

Case in point: your ChatGPT is telling you to overwrite a function that doesn't exist in that window type.

Also the section rules prohibit asking for support with AI-generated code.

Try this: copy into a text editor, save as a *.js file, include as a plugin.
Code:
Window_BattleStatus.prototype.placeActorName = function(actor, x, y) {};
I know this is an old post but I just wanted to ask for help. I tried this code but it didn't work. Is it compatible with Yanfly's plugins or is that an issue?
I know this is an old post but I just wanted to ask for help. I tried this code but it didn't work. Is it compatible with Yanfly's plugins or is that an issue?
No - this request was for RPG Maker MZ. MV draws the names differently. For MV, try:

Code:
Window_BattleStatus.prototype.drawActorName = function(actor, x, y) {};
No - this request was for RPG Maker MZ. MV draws the names differently. For MV, try:

Code:
Window_BattleStatus.prototype.drawActorName = function(actor, x, y) {};
I know this is a little late but thank you. I finally got it working alongside my other plugins. Just an order mistake on my part.

Original thread: https://forums.rpgmakerweb.com/threads/hide-actors-names-in-battlestatus.170327/