While there’s lots of things you can do by just injecting JS, some things cannot be done because much of the code is protected in scope, so you have to modify the script directly.
The old way of doing it was to put the script.js in Tampermonkey as a userscript, and block http://www.multiplayerpiano.com/script.js
with AdBlock, but there is a better way using an extension specifically designed for this purpose, Resource Override.
http://www.multiplayerpiano.com/*
*/script.js
Your rules should look like this:
That’s it! Now you can modify your copy and it should override the original script.
You can use this method to modify other files, such as Client.js