Ever wanted to access an iPhone-only site like iphone.beejive.com? Not surprisingly, I couldn't get JiveTalk for the iPhone to work in Firefox (using an iPhone user-agent string), but it worked fine in Safari. I tested this with Safari 2.0.4 and Safari 3.0.2 on OS X 10.4.10 and it worked fine, but Safari 3.0.2 on Windows seems to ignore the CustomUserAgent parameter. In other words this only works on a Mac.
Make sure you have an iPhone user agent handy, like this one:
Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A538b Safari/419.3
- First, quit Safari if it's running.
- If you haven't done so already, enable the Safari debug menu, this will let you change your user agent back easily and give you some other useful options.
- On a Mac1 open a new terminal and type:
defaults write com.apple.Safari IncludeDebugMenu 1
- Next you'll set the
CustomUserAgentkey to change the Safari user agent. From the same terminal window type:
defaults write com.apple.Safari CustomUserAgent '"Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A538b Safari/419.3"'
- Use this bookmarklet to resize the viewport to 320 x 396:
- Browse to http://iphone.beejive.com/ or some other iPhone-only site
Note: If you don't have a vertical scrollbar the first time you run the bookmarklet, and then one is displayed it'll create a horizontal scrollbar which messes up the display.
- When you're ready to switch back to the default user agent just open the Debug menu and select User Agent > Automatically Chosen.