Yesterday, I asked “Are you Mac, or PC?”. There was a comment from Branedy that caught my attention…
“I use Safari on my iMac and iBook, at work I use Firefox, with the user agent set to IE to get past the company firewall.”
I thought this would be a perfect time to post this tip. If you are in a similar situation as Branedy, but you would prefer to use Safari, instead of Firefox, it is possible to change Safari’s User Agent very easily. It involves activating Safari’s hidden Debug menu.
First, quit Safari, if it’s already running. Then, open the Terminal application and copy/paste the line below, and hit return. You may be prompted for an admin password.
defaults write com.apple.safari IncludeDebugMenu 1
Now just relaunch Safari and you’ll see a new pull-down menu called Debug. The menu has a wealth of things you can do, one of them is change Safari’s User Agent.
If you decide you would rather not have the menu active, simply quit Safari, go back to the Terminal and copy/paste the same line again, except change the “1” at the end to a zero, like this…
defaults write com.apple.safari IncludeDebugMenu 0