Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Is it possible to customise the search engines used by Safari 5.1 on Snow Leopard? I'd like to get it to use google.co.uk rather than google.com for searches. I've found a couple of old posts (including this one which doesn't seem to apply any more) but nothing very recent.

share|improve this question
    
If you go to google.com don't you get a redirect to google.co.uk? (If you're in the uk). –  DanBeale Aug 19 '11 at 6:43

4 Answers 4

up vote 3 down vote accepted

I don't use it, but GLIMS looks like it will easily let you insert a search engine different than what Safari bundles.

More intrusive, but way slick in my opinion is the SafariOmnibar it's excellent work and you can customize your search provider since it's hacked into that part of safari using SIMBL - the SIMple Bundle Loader process.

I use LaunchBar and search from a keyboard shortcut - it allows extensive control over searching - you can define custom search sites and criteria easily. It has many other features (notable extremely quick app and file launching as well as a clipboard history) but it's so fast you might like it just for getting a UK search if nothing else fits your needs.

share|improve this answer
    
Thanks. Am just giving SafariOmnibar a try now. –  mikej Aug 18 '11 at 22:39
    
After a bit of back and forth between a few approaches, I've currently settled on using LaunchBar so I'll mark this as the accepted answer. I appreciated the the technical insight from Benjamin as well though. –  mikej Jan 30 '12 at 14:37
1  
+1 for GLIMS, works nicely with Safari 6 as well –  patrix Aug 15 '12 at 18:08

the query string is defined in :

~/Library/Safari/Configurations.plist.signed

but the file is signed and cannot be edited without being replaced by safari.

Also, it seems that every time you use this search bar, Safari hits This file on apple.com which can make one assume that Safari compares the 2 files and replaces the local one when needed.

I think your only options are via extensions or another browser

share|improve this answer
    
I think Lion's sandbox and code signing are going to chafe me considerably until everyone sorts out where the line needs to be drawn in the proverbial sandbox. +1 for the direct answer here. –  bmike Aug 18 '11 at 22:25
    
Thanks for the answer. I've just taken a look at the contents of the plist file and it seems to include a list of the international Google sites. I wonder what they're used for. –  mikej Aug 18 '11 at 22:38
    
Perhaps it uses your localization from Language&Text preference pane to auto select which Google site it thinks you want. (unless it's for future use once they figure out how to allow us to choose from the wider list) –  bmike Aug 18 '11 at 22:41

As an update to my own question, I have just come across this Safari extension which redirects searches from google.com to google.co.uk. It also redirects Yahoo searches from search.yahoo.com to uk.search.yahoo.com.

share|improve this answer
    
I'm the author of that extension. –  mrwalker Sep 23 '12 at 10:04
    
@mrwalker thanks for writing it –  mikej Sep 23 '12 at 10:36
    
You're welcome! –  mrwalker Sep 23 '12 at 13:43

As of Safari 6, there is now an "omnibar" instead of separate search and address bars. This breaks a lot of previous extensions and plugins, but the updates to the extension API for Safari 6 actually make it much easier to make an extension allows you to use a custom search engine within the new omnibar.

I put together a really simple one here: AnySearch.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.