Board Thread:Support Requests - Getting Technical/@comment-5413643-20140627204303

I am attempting to test the changing of usernames with JavaScript, just to see if it will work. The code I have:

var str = "Lumoshi"; var res = str.replace("Lumoshi", "MarioLuigi1234"); document.body.innerHTML = document.body.innerHTML.replace('Lumoshi', 'MarioLuigi1234');

It doesn't seem to work. While on chat, I entered the code in the console by inspect element, but it appeared I had to enter the code each time for every instance of my username for it to change. Then it broke PM, making private messages appear as a layer above the main chat.

Is there something I'm missing? Note that I'm not experienced with JS. If this isn't possible, it's okay. 