Cursor Blink Remover for MV?

This is the original script for Ace: https://forums.rpgmakerweb.com/index.php?threads/cursor-blink-remover.29108/

I would like to convert it to Javascript to use as a plugin for MV. Please and thank you.

Peace.
I just commented out one line.
PHP:
Window.prototype._updateCursor = function() {
    var blinkCount = this._animationCount % 40;
    var cursorOpacity = this.contentsOpacity;
    if (this.active) {
        if (blinkCount < 20) {
            cursorOpacity -= blinkCount * 8;
        } else {
            cursorOpacity -= (40 - blinkCount) * 8;
        }
    }
    //this._windowCursorSprite.alpha = cursorOpacity / 255;
    this._windowCursorSprite.visible = this.isOpen();
};
I just commented out one line.
PHP:
Window.prototype._updateCursor = function() {
    var blinkCount = this._animationCount % 40;
    var cursorOpacity = this.contentsOpacity;
    if (this.active) {
        if (blinkCount < 20) {
            cursorOpacity -= blinkCount * 8;
        } else {
            cursorOpacity -= (40 - blinkCount) * 8;
        }
    }
    //this._windowCursorSprite.alpha = cursorOpacity / 255;
    this._windowCursorSprite.visible = this.isOpen();
};

It works! Thanks so much. But, you know, I'll make sure to let you know if there are any glitches or compatibility issues with other plugins.
It's an overwrite of updateCursor (kinda quick and careless), so put it above any cursor plugins if it breaks them.

It's really the only way to do it, short of redundantly setting the alpha back to one with an alias of updateCursor.
This didnt work out for me.

Original thread: https://forums.rpgmakerweb.com/threads/cursor-blink-remover-for-mv.77775/