Remove the fade transition for opening/closing the menu?

Heya, I was wondering if there was a script that removes the transparency fade transition that plays when you open or close the command menu? Thanks
Extracting parts of a script from A-Moonless-Night...
Put this in your script list.
Ruby:
class Window_Base < Window
 
  def update_open
    self.openness += 255
    @opening = false if open?
  end

  def update_close
    self.openness -= 255
    @closing = false if close?
  end
end

class Scene_Map < Scene_Base
  def perform_transition
    if Graphics.brightness == 0
      Graphics.transition(0)
      fadein(fadein_speed)
    else
      super
    end
  end
end

class Scene_Menu < Scene_MenuBase
  def transition_speed
    return 0
  end
 
  def terminate
    super
    Graphics.transition(0)
  end
end
This is exactly what I wanted, thanks 🙂

Original thread: https://forums.rpgmakerweb.com/threads/remove-the-fade-transition-for-opening-closing-the-menu.128567/