MZ Remove The Skill Type Window

Hello!
Is there a plugin for RPG Maker MZ that removes the skill type window and skips straight to the skill selection window?

1681149113838.png
You can give this a try, though it may not work if you are using other plugins that modify Scene_Skill. I have only tested in a blank project.

JavaScript:
// Skip skill type selection in Scene_Skill
(() => {
const refreshActor = Scene_Skill.prototype.refreshActor;
Scene_Skill.prototype.refreshActor = function() {
    refreshActor.apply(this);
    this.commandSkill();
}
const createSkillTypeWindow = Scene_Skill.prototype.createSkillTypeWindow;
Scene_Skill.prototype.createSkillTypeWindow = function() {
    createSkillTypeWindow.apply(this);
    this._skillTypeWindow.hide();
}
const onActorChange = Scene_Skill.prototype.onActorChange;
Scene_Skill.prototype.onActorChange = function() {
    onActorChange.apply(this);
    this.commandSkill();
}
const commandSkill = Scene_Skill.prototype.commandSkill;
Scene_Skill.prototype.commandSkill = function() {
    const id = this._skillTypeWindow.currentExt();
    this._itemWindow.setStypeId(id);
    commandSkill.apply(this);
}
Scene_Skill.prototype.onItemCancel = function() {
    this.popScene();
}
Scene_Skill.prototype.mainCommandWidth = function() {
    return 0;
}
Window_SkillType.prototype.activate = function() { };
})();
Thank you, Kenen. It works flawlessly!
Are you the author of this plugin? I'd love to add the author to the credits page.
You're welcome, and yes, though no credit is required.

Original thread: https://forums.rpgmakerweb.com/threads/remove-the-skill-type-window.156558/