Create realname in the url

Hello,

how do you do to add the variable &realname= in the url for it to be taken into in URL ?
How to change the JS files?

thank you.