Quick Tip - Hardwiring The Search Bar In Firefox

Photo of Greg Harvey
Fri, 2009-05-08 09:01By greg

Just a quick one this morning. I discovered this last night while trying to get the Java plug-in to work with Firefox in Fedora 10 (I didn't, for the record).

If, like me, you live somewhere that means if you go to www.google.com then Google rather cleverly (but annoyingly) redirects you to that country's Google (in my case www.google.fr) and that is not desired, here's what to do:

Linux

In a terminal window:

locate google.xml
su -c "nano /google.xml"

Obviously, su -c is sudo on Debian-based systems and you don't need the quotes. If you don't use locate, the path to the file will be the searchplugins directory of Firefox, which on my system is /usr/lib/firefox-3.0.10/searchplugins/.

On line 6 of that file you'll see something like this:


Change it to whatever site you want to use (e.g. http://www.google.co.uk), save the file and restart Firefox. Done! Now all my search bar traffic goes to Google UK instead of Google France. =)

Windows

Pretty much the same really, but you'll have to use Windows Search to find the file (it will still be in the searchplugins directory within Firefox - probably C:\Program Files\Firefox\searchplugins, or something like that).

Edit google.xml with Notepad and make exactly the same amends as above.

There's also various other search plugins in there you can edit, which is cool. Looks fairly straightforward to make your own too. Nice. =)