What if I want to make a plugin that deletes a portion of the RM code...

...or even replaces it with something else, to make my edits to the code easy to turn on and off from the plugin manager?

How would I go about doing this. I have some understanding of JS. This would be my first plugin, and I have an idea of how plugins are formatted. I know about aliasing.

Does just copying the class or whatever its called into the new JS file and editing change it?
Basically, if you replace a function from the core code in your plugin, the engine will use your version instead of the original. If you assign the original function to a variable, you can still call the core version if needed by using varname.call(this);

By extension, you can "delete" portions of the code by overwriting functions and leaving them blank, or copying the original code and removing the bits you don't want.
That's basically what every plugin does.
Thank you, the first part of my plugin works. 😛

Original thread: https://forums.rpgmakerweb.com/threads/what-if-i-want-to-make-a-plugin-that-deletes-a-portion-of-the-rm-code.75019/