For this target page (Sorry but SO doesn\'t allow hyperlinks to 62.0.54.118):
http://62.0.54.118/search?&q=42&oq=42&sourceid=chrome&ie=UTF-8&
If the input name is just q, by itself, then merely change the waitForKeyElements call to:
q
waitForKeyElements ("input[name='q']", changeLinkQuery);
So that it looks for exactly q, rather than a q anywhere in the string.
If that's not exactly the name of that <input>, comment below.
<input>