Archive for December 19th, 2009

Setting User-Agent for Mac Chrome

I was having problems watching instantly videos in my Netflix Queue since netflix doesn't yet recognize Chrome on the Mac (and possibly on the PC, haven't tested that.) Netflix knows which browser you're on by it's user-agent. That be changed when Chrome starts up. Here what I did on the Mac to change the user-agent to a version of Safari:

In Terminal enter:


Replace

/Applications/Google\ Chrome.app

with the location of "Google Chrome.app" if it's not in the /Applications folder or under a different name.
To automate, put in a shell file that you can manually run or set to automatically load at startup.
Note: This works on the terminal "open" in Snow Leopard. But in the Leopard version of "open", the "--args" parameter does not look to be supported.
Update: Angelo, in message below says

For Leopard (10.5.X) (not Snow Leopard) use this:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome –args -user-agent="Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/525.19 (KHTML, like Gecko) Version/3.2.1 Safari/525/19"

66,732 views