As the question states, how do you hide/unhide/mask URL query parameters in javascript? This site appears to be able to do something like it:
http://bernii.github.io/gauge.js/#!
(Check the "Share it! If checked, the option values will be stored in the URL so that you can easily share your settings.")
Say I have the following URL...
http://localhost/?var1=value1&var2=value2&var3=value3
How do I hide just the var2 and var3 portion such that the URL is:
http://localhost/?var1=value1
(WIth a click of a link on the page to toggle the GET variable in and out of the page without refreshing it.)