The {exp:search:advanced_form} tag generates a bunch of JavaScript code that seems unnecessary. There’s a “changemenu” function with a long list of categories, but I am not using any categories in my advanced search form.
Is there a way to get rid of this JS?
The main reason I am asking this is because for a long time we have been seeing the URL http://www.domain.com/!-!/g show up in Google Webmaster Tools. The only place where I can find “/!-!/g” anywhere on our website is in this function. Somehow Google is finding this thing.
We have spent a lot of time trying to get all errors and suggestions in Webmaster Tools down to zero, and we would really like to get rid of this final /!-!/g link
Also, the JS code is 7 Kb of text on every page that seems to be completely unnecessary.