Is there a way to delete automatic messages if I don't type anything in their text box?

For example, let's say that I don't want the game to tell me "Victory" after I win a battle and directly skip to how much XP I've gained, etc. Is there a way to do that without having this empty space in the battle end textbox?
Paste the below into a text editor. Save as a *.js file, include as a plugin.
Code:
BattleManager.processVictory = function() {
    $gameParty.removeBattleStates();
    $gameParty.performVictory();
    this.playVictoryMe();
    this.replayBgmAndBgs();
    this.makeRewards();
//    this.displayVictoryMessage();
    this.displayRewards();
    this.gainRewards();
    this.endBattle(0);
};
Thanks ! is there a way to make it so that it'll work with every automatic message I chose not to display?
Paste the below into a text editor. Save as a *.js file, include as a plugin.
Code:
BattleManager.processVictory = function() {
    $gameParty.removeBattleStates();
    $gameParty.performVictory();
    this.playVictoryMe();
    this.replayBgmAndBgs();
    this.makeRewards();
//    this.displayVictoryMessage();
    this.displayRewards();
    this.gainRewards();
    this.endBattle(0);
};
Just do the exact same thing I did above for the Victory Message and comment out any line you don't want to happen.

No - every game message is used in a different place and has its own code function calling it, so there's no universal way to say "if this message is empty don't print it". You need to find and delete each one individually.
Hmmm I'd like to remove these, basically anything that I can show with animation / VFX si that I don't have text filling up the screen at the top.

As for the "Actor Gain / Loss", I looked it up but I'm still not sure what it refers to.
Just do the exact same thing I did above for the Victory Message and comment out any line you don't want to happen.

No - every game message is used in a different place and has its own code function calling it, so there's no universal way to say "if this message is empty don't print it". You need to find and delete each one individually.
Why don't you just use a plugin that removes the battle log? Is there anything it prints that you do want to keep?

Even if you don't remove it entirely, you should be able to use one of those plugins to customize which messages it shows instead of haring around the place deleting individual things.
There are a few that I'd like to keep, like the Preemptive Strike one.

I got VisuMZMessageCore but I haven't got to tinker with it yet (basically, I picked it up "just in case" there was no way of deleting the messages). And I wanted to know if there was an easier way to get rid of them, like something directly integrated into the engine, or a plugin simple enough for me to understand or even code myself, like the one you sent me (I don't have any experience in JS though).
You can see if it's there, but I'd expect that plugin to deal with messages from the Show Text command.

I'd expect battle log/message settings to be in the Battle Core.

You could also just Google "rpg maker mz battle messages plugin" and see what comes up, if there's something less complex than the VisuStella.

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-delete-automatic-messages-if-i-dont-type-anything-in-their-text-box.161411/