Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Modify the default search engine URL in Firefox 1.5 Web Browsers
If you have Firefox and like to use the built-in search engine, but find that it is not the appropriate engine for your home country (I am in Australia, so I like to use www.google.com.au rather than www.google.com), then the following will help you correct that problem.

To change the search engine URL ,you can open the folder that Firefox uses to store the search engine details and alter the .src file as follows:
  1. Quit Firefox.
  2. In the Finder, navigate to /Applications -> Firefox.app -> (Control-click and choose Show Package Contents) -> Contents -> MacOS -> searchplugins. This is where Firefox stores all its search engine files.
  3. Find the relevant .src file (the .png and .gif files are icons) and make a backup copy (put the copy elsewhere).
  4. Open the chosen .src file using the contextual menu's Open With -> Other option. Select any pure text editor (I used Text Edit).
  5. Find the line that contains the URL (in google.src, it was the seventh line, which reads action="http://www.google.com/search and change it accordingly (to action="http://www.google.com.au/search in my case).
  6. Reading the last line, updateCheckDays="1", I presumed that the engine might be updated automatically, so I changed this to "0", which I assume sets the updater not to update. This would prevent the hack being overwritten later, I guessed. Perhaps someone can tell me if this is so--I'm not sure if this bit is necessary or helpful.
  7. Save the file.
  8. Open Firefox and try out your new search engine.
This worked perfectly for me, but I am new to this sort of thing, so any comments or modifications would be appreciated
    •    
  • Currently 2.20 / 5
  You rated: 5 / 5 (5 votes cast)
 
[26,585 views]  

Modify the default search engine URL in Firefox 1.5 | 7 comments | Create New Account
Click here to return to the 'Modify the default search engine URL in Firefox 1.5' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Modify the default search engine URL in Firefox 1.5
Authored by: mittrawnuruodo on Dec 29, '05 06:36:55AM

You can also make a copy of the search engine, call that googleau (or whatever) and change the default search plugin using the about:config function in Firefox.

Just type about:config in the Location bar and under browser.search.defaultenginename you can set default engine to googleau (and browser.search.default.url to set the url and browse.search.order.# to sort them - well, it's supposed to work, anyway ;)).



[ Reply to This | # ]
Modify the default search engine URL in Firefox 1.5
Authored by: diamondsw on Dec 29, '05 07:21:27AM

Or, instead of mucking about in there, just download the proper engine from http://mycroft.mozdev.org/, and then it will update itself properly, etc.



[ Reply to This | # ]
Modify the default search engine URL in Firefox 1.5
Authored by: neuralstatic on Dec 29, '05 11:55:13AM

yep this is a completely modular search field. you can delete the google search engine plug in and put in google.zambia or anything.

firefox is smart enough to not make you reverse engineer something like this. there's even an extension to let you delete search engine plug ins so you don't have to open a folder.



[ Reply to This | # ]
Modify the default search engine URL in Firefox 1.5
Authored by: gidds on Dec 29, '05 10:40:02AM
Good hint, but I don't think it's necessary in this particular case, because www.google.com sends you to your local site anyway. For you in Australia, doesn't it go to the same place as www.google.com.au?

Here in the UK, for example, www.google.com resolves to the same IP address as our local www.google.co.uk.

---
Andy/

[ Reply to This | # ]

Modify the default search engine URL in Firefox 1.5
Authored by: michaeldoc on Dec 31, '05 04:36:09AM

For some reason, google.com doesn't resolve to google.com.au for me. (Firefox 1.5, Panther 10.39) which means that the "search pages in Australia" option is not available. This is the reason I tried the modification. Thanks Andy and others... so many ways to do things! This is why I have decided to make the switch from Safari to Firefox- it's so flexible.



[ Reply to This | # ]
Modify the default search engine URL in Firefox 1.5
Authored by: sfgecko on Dec 29, '05 11:49:57AM

Can also just do this:
1. type about:config in the address bar
2. add a new string type called "keyword.URL" with value "http://www.google.com.au/search?q="
3. restart firefox.

Now when you type in a word or phrase in the address bar (not the seach bar), it will run a google search on it by default. You don't even need to show or use the search box.

Alternatively, you can also add this to your user.js file:
user_pref("keyword.URL", "http://www.google.com.au/search?q=");



[ Reply to This | # ]
Modify the default search engine URL in Firefox 1.5
Authored by: genericuser on Jan 05, '06 04:16:20PM

Or, if not particularly fond of mucking about with the entrails of Firefox, simply get the extension called "Search Engine Ordering", to be found here:

http://www.extensionsmirror.nl/index.php?showtopic=4319&hl=search+engine

and stop fiddling, unless you're really looking for a way to waste time.



[ Reply to This | # ]