|
|
One method of changing the search engine in Safari
In terminal I type:
strings /Applications/Safari.app/Contents/MacOS/Safariand i get a ton of results. I do a search for "Google" and after a bit find the following lines a bit interesting: http://%@.google.com/%@?q=%@&ie=UTF-8&oe=UTF-8
I'm 99.9% sure these bits of the source code have to do with the address of the search engine used. I know that %@ is used in Cocoa to replace bits of a string with other things...The first line seems particularly interesting because when aI do a search for "apple" for example http://www.google.com/search?q=apple&ie=UTF-8&oe=UTF-8 definitely is http://%@.google.com/%@?q=%@&ie=UTF-8&oe=UTF-8 with the %@ ts replaced..... -- Sam
One method of changing the search engine in Safari
Yup. I changed my "search engine" on safari by editing the binary and replacing that google url with my own. I used "vi" to edit it. First make a backup copy of the Safari executable, then open it up in vi, search for "google" until you get to the url and edit away. Make sure the new url is exactly the same length as the google url (pad it wil meaningless url parameters if needed), or else it will screw up the binary.
One method of changing the search engine in Safari
I did it in HexEdit got the same results. I don't know how i would make a longer string or use less %@s though..... |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|