The mechanics are simple enough: download and install Cheat Engine, launch it, attach it to the browser process running the game, then enter the values you want to change.
Be honest about the cost, though. It's a reliable way to get an account suspended, and server-side games often won't respond to it at all. Not a good trade for something you've put months into.