Skip to content

Instantly share code, notes, and snippets.

@nakajmg
Last active December 14, 2015 06:48
Show Gist options
  • Save nakajmg/5044949 to your computer and use it in GitHub Desktop.
Save nakajmg/5044949 to your computer and use it in GitHub Desktop.
[bash] launch commandline Google Canary set User-Agent ( example : Chrome Canary , iPhone iOS ver 5.1.1 , edit .app path & --user-agent value )
##iPhone iOS5.1.1
IOS511(){
command open -a Google\ Chrome\ Canary.app --args --user-agent="Mozilla/5.0 (iPhone; CPU iPhone OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3"
}
##Galaxy S3 Android4.0.4
GS3(){
command open -a Google\ Chrome\ Canary.app --args --user-agent="Mozilla/5.0 (Linux; U; Android 4.0.4; en-gb; GT-I9300 Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment