Page 1 of 2 12 LastLast
Results 1 to 10 of 15
Discuss [MobileSafari] Making Google mobile the default search engine? at the General - Hackint0sh.org; How can i make the iPhone formatted version of Google the default one when I ...
  1. #1
    Professional Array

    Join Date
    Nov 2007
    Posts
    80
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    11

    Default [MobileSafari] Making Google mobile the default search engine?

    How can i make the iPhone formatted version of Google the default one when I use the google search within mobile Safari?



  2. #2
    Professional Array

    Join Date
    Nov 2007
    Posts
    80
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    11

    Default

    Anyone? anyone?

  3. #3
    Senior Professional Array

    Join Date
    Jul 2007
    Posts
    315
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    25

    Default

    its hard coded into safari, you want to use google for mobiles then go in safari and go to www.google.com then switch to the mobile version. it will set the cookie and all future visits will go right there, you can not change the button on the keyboard.

    also this is worth a read

  4. #4
    Professional Array

    Join Date
    Nov 2007
    Posts
    80
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    11

    Default

    i know it is hard coded, but i was wondering if someone knows to reencode it so that version of google is the default

  5. #5
    Former Bender
    Guest

    Default

    Thread renamed.

    You must Take the binary inside MobileSafari.app (make a backup first) and edit it with a hexeditor.

    Search for the string

    and replace it by

    The space left must be replaced by "." (020 in hexa), fill with "." until the second 8 of UTF-8.

    Good luck.
    Last edited by Former Bender; 01-15-2008 at 05:42 PM.


  6. #6
    Professional Array

    Join Date
    Nov 2007
    Posts
    80
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    11

    Default

    Thanks! have you tried it?

  7. #7
    Board Hero Array

    Join Date
    Dec 2007
    Posts
    1,044
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    74

    Default

    Quote Originally Posted by XianLi View Post
    Thread renamed.

    You must Take the binary inside MobileSafari.app (make a backup first) and edit it with a hexeditor.

    Search for the string



    and replace it by



    The space left must be replaced by "." (020 in hexa), fill with "." until the second 8 of UTF-8.

    Good luck.
    I wonder what happens if the localization is changed (in Settings... General... International... Region Format). Usually this changes the Google search URL to the local one (e.g. google.co.uk), so it presumably overrides the URL from MobileSafari.app. Do we have to change some other file if we're localized but still want to use the iPhone-optimized version?
    iPhone 3GS / 3.1.2 JB (PwnageTool) / 04.26.08 carrier-locked, Carrier Logo Fixer / Cydia / 1000 posts on Hackint0sh

    Installing Cydia programs on a phone that has no internet connection: read this.

    Editing binary .plist, .strings, .nib and .xib files:
    * on your computer: Windows tool / conversion website.
    * on your iPhone: convert those files in a terminal with plutil (installed with Erica Utilities) or edit them with iFile (Cydia links).

  8. #8
    Advanced Array

    Join Date
    Sep 2007
    Posts
    37
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Here is the edited file: http://www.blunx.com/MobileSafari.zip

  9. #9
    Board Hero Array

    Join Date
    Dec 2007
    Posts
    1,044
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    74

    Default

    Here's a solution that does not involve modifying the Safari binary and allows the mobile (or some other) version of Google to be default even when the iPhone is localized.

    It involves changing a value in /Applications/MobileSafari.app/GoogleTLDs.plist on the iPhone. This is a list of localization codes (like GB for United Kingdom, FR for France, etc.) with the Internet top-level domain (TLD) that the local Google variety uses (like co.uk with GB because it's www.google.co.uk there, etc.).
    • First you decide what your localization is (in Settings... General... International... Region Format). By default it's the US.
    • Then you decide which Google site you want to use from the search bar in Safari. I prefer www.google.com/m (the iPhone-optimized version of the American site).
    • Then you edit GoogleTLDs.plist to bring the two together. For example, to use www.google.com/m with UK localization, change the relevant part of the file from
      Code:
          <key>GB</key>
          <string>co.uk</string>
      to
      Code:
          <key>GB</key>
          <string>com/m</string>
    Another way of changing the plist is with the plutil command from Erica's Utilities (an Installer package): from terminal (or PuTTY), issue
    Code:
    plutil -s GB -v "com/m" /Applications/MobileSafari.app/GoogleTLDs.plist
    Restart Springboard for the change to take effect.
    iPhone 3GS / 3.1.2 JB (PwnageTool) / 04.26.08 carrier-locked, Carrier Logo Fixer / Cydia / 1000 posts on Hackint0sh

    Installing Cydia programs on a phone that has no internet connection: read this.

    Editing binary .plist, .strings, .nib and .xib files:
    * on your computer: Windows tool / conversion website.
    * on your iPhone: convert those files in a terminal with plutil (installed with Erica Utilities) or edit them with iFile (Cydia links).

  10. #10
    Rip
    Rip is offline
    Newbie Array

    Join Date
    Jan 2008
    Posts
    1
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by Jim Danner View Post
    Here's a solution that does not involve modifying the Safari binary and allows the mobile (or some other) version of Google to be default even when the iPhone is localized.

    It involves changing a value in /Applications/MobileSafari.app/GoogleTLDs.plist on the iPhone. This is a list of localization codes (like GB for United Kingdom, FR for France, etc.) with the Internet top-level domain (TLD) that the local Google variety uses (like co.uk with GB because it's www.google.co.uk there, etc.).
    • First you decide what your localization is (in Settings... General... International... Region Format). By default it's the US.
    • Then you decide which Google site you want to use from the search bar in Safari. I prefer www.google.com/m (the iPhone-optimized version of the American site).
    • Then you edit GoogleTLDs.plist to bring the two together. For example, to use www.google.com/m with UK localization, change the relevant part of the file from
      Code:
          <key>GB</key>
          <string>co.uk</string>
      to
      Code:
          <key>GB</key>
          <string>com/m</string>
    Another way of changing the plist is with the plutil command from Erica's Utilities (an Installer package): from terminal (or PuTTY), issue
    Code:
    plutil -s GB -v "com/m" /Applications/MobileSafari.app/GoogleTLDs.plist
    Restart Springboard for the change to take effect.
    This worked great and has made all the difference to using Google on my iPhone. Thank you!

    When the Google mobile results display, there is a 'More Mobile' drop down in the top right. Is there a fix to make the News option default to UK news? Or better still to my Google custom news page?

    Either would be great.

    TIA


 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Slashdot: Talk of an Apple Search Engine To Thwart Google
    By hackint0sh in forum Latest Headlines
    Replies: 0
    Last Post: 04-04-2010, 10:00 PM
  2. Replies: 0
    Last Post: 01-20-2010, 07:00 AM
  3. [MobileSafari] Tutorial > Hacking the Built-In Google Search
    By grimmet in forum Free Toolchain Software (Cydia App's)
    Replies: 13
    Last Post: 04-22-2008, 10:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 02:49 AM.
twitter, follow us!