Skip to content

Instantly share code, notes, and snippets.

@waf
Created October 20, 2017 08:15
Show Gist options
  • Select an option

  • Save waf/c8bb5e6bad0c3e45b5041f7fb71466af to your computer and use it in GitHub Desktop.

Select an option

Save waf/c8bb5e6bad0c3e45b5041f7fb71466af to your computer and use it in GitHub Desktop.
json from chromedriver's mobile_device_list.cc as of 2017-10-06
{
"iPad": {
"deviceScaleFactor": 2,
"mobile": true,
"height": 1024,
"width": 768,
"touch": true,
"userAgent": "Mozilla/5.0 (iPad; CPU OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1"
},
"Laptop with touch": {
"deviceScaleFactor": 1,
"mobile": false,
"height": 1280,
"width": 950,
"touch": true,
"userAgent": ""
},
"BlackBerry Z30": {
"deviceScaleFactor": 2,
"mobile": true,
"height": 640,
"width": 360,
"touch": true,
"userAgent": "Mozilla/5.0 (BB10; Touch) AppleWebKit/537.10+ (KHTML, like Gecko) Version/10.0.9.2372 Mobile Safari/537.10+"
},
"Nexus 6": {
"deviceScaleFactor": 3.5,
"mobile": true,
"height": 732,
"width": 412,
"touch": true,
"userAgent": "Mozilla/5.0 (Linux; Android 5.1.1; Nexus 6 Build/LYZ28E) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3227.0 Mobile Safari/537.36"
},
"LG Optimus L70": {
"deviceScaleFactor": 1.25,
"mobile": true,
"height": 640,
"width": 384,
"touch": true,
"userAgent": "Mozilla/5.0 (Linux; U; Android 4.4.2; en-us; LGMS323 Build/KOT49I.MS32310c) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3227.0 Mobile Safari/537.36"
},
"Nexus 4": {
"deviceScaleFactor": 2,
"mobile": true,
"height": 640,
"width": 384,
"touch": true,
"userAgent": "Mozilla/5.0 (Linux; Android 4.4.2; Nexus 4 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3227.0 Mobile Safari/537.36"
},
"Nexus 5": {
"deviceScaleFactor": 3,
"mobile": true,
"height": 640,
"width": 360,
"touch": true,
"userAgent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3227.0 Mobile Safari/537.36"
},
"Blackberry PlayBook": {
"deviceScaleFactor": 1,
"mobile": true,
"height": 1024,
"width": 600,
"touch": true,
"userAgent": "Mozilla/5.0 (PlayBook; U; RIM Tablet OS 2.1.0; en-US) AppleWebKit/536.2+ (KHTML like Gecko) Version/7.2.1.0 Safari/536.2+"
},
"Galaxy Note 3": {
"deviceScaleFactor": 3,
"mobile": true,
"height": 640,
"width": 360,
"touch": true,
"userAgent": "Mozilla/5.0 (Linux; U; Android 4.3; en-us; SM-N900T Build/JSS15J) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30"
},
"Nexus 6P": {
"deviceScaleFactor": 3.5,
"mobile": true,
"height": 732,
"width": 412,
"touch": true,
"userAgent": "Mozilla/5.0 (Linux; Android 5.1.1; Nexus 6 Build/LYZ28E) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3227.0 Mobile Safari/537.36"
},
"Laptop with HiDPI screen": {
"deviceScaleFactor": 2,
"mobile": false,
"height": 1440,
"width": 900,
"touch": false,
"userAgent": ""
},
"Nexus 7": {
"deviceScaleFactor": 2,
"mobile": true,
"height": 960,
"width": 600,
"touch": true,
"userAgent": "Mozilla/5.0 (Linux; Android 4.3; Nexus 7 Build/JSS15Q) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3227.0 Safari/537.36"
},
"Nokia N9": {
"deviceScaleFactor": 1,
"mobile": true,
"height": 854,
"width": 480,
"touch": true,
"userAgent": "Mozilla/5.0 (MeeGo; NokiaN9) AppleWebKit/534.13 (KHTML, like Gecko) NokiaBrowser/8.5.0 Mobile Safari/534.13"
},
"Nokia Lumia 520": {
"deviceScaleFactor": 1.5,
"mobile": true,
"height": 533,
"width": 320,
"touch": true,
"userAgent": "Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; NOKIA; Lumia 520)"
},
"Nexus 10": {
"deviceScaleFactor": 2,
"mobile": true,
"height": 1280,
"width": 800,
"touch": true,
"userAgent": "Mozilla/5.0 (Linux; Android 4.3; Nexus 10 Build/JSS15Q) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3227.0 Safari/537.36"
},
"Microsoft Lumia 950": {
"deviceScaleFactor": 4,
"mobile": true,
"height": 640,
"width": 360,
"touch": true,
"userAgent": "Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 950) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Mobile Safari/537.36 Edge/14.14263"
},
"iPhone 5": {
"deviceScaleFactor": 2,
"mobile": true,
"height": 568,
"width": 320,
"touch": true,
"userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1"
},
"iPhone 4": {
"deviceScaleFactor": 2,
"mobile": true,
"height": 480,
"width": 320,
"touch": true,
"userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1"
},
"iPhone 6": {
"deviceScaleFactor": 2,
"mobile": true,
"height": 667,
"width": 375,
"touch": true,
"userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1"
},
"Galaxy S III": {
"deviceScaleFactor": 2,
"mobile": true,
"height": 640,
"width": 360,
"touch": true,
"userAgent": "Mozilla/5.0 (Linux; U; Android 4.0; en-us; GT-I9300 Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30"
},
"Microsoft Lumia 550": {
"deviceScaleFactor": 2,
"mobile": true,
"height": 360,
"width": 640,
"touch": true,
"userAgent": "Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 550) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Mobile Safari/537.36 Edge/14.14263"
},
"iPad Mini": {
"deviceScaleFactor": 2,
"mobile": true,
"height": 1024,
"width": 768,
"touch": true,
"userAgent": "Mozilla/5.0 (iPad; CPU OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1"
},
"iPad Pro": {
"deviceScaleFactor": 2,
"mobile": true,
"height": 1366,
"width": 1024,
"touch": true,
"userAgent": "Mozilla/5.0 (iPad; CPU OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1"
},
"Nexus 5X": {
"deviceScaleFactor": 2.625,
"mobile": true,
"height": 732,
"width": 412,
"touch": true,
"userAgent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3227.0 Mobile Safari/537.36"
},
"Galaxy Note II": {
"deviceScaleFactor": 2,
"mobile": true,
"height": 640,
"width": 360,
"touch": true,
"userAgent": "Mozilla/5.0 (Linux; U; Android 4.1; en-us; GT-N7100 Build/JRO03C) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30"
},
"iPhone 6 Plus": {
"deviceScaleFactor": 3,
"mobile": true,
"height": 736,
"width": 414,
"touch": true,
"userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1"
},
"Galaxy S5": {
"deviceScaleFactor": 3,
"mobile": true,
"height": 640,
"width": 360,
"touch": true,
"userAgent": "Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3227.0 Mobile Safari/537.36"
},
"Kindle Fire HDX": {
"deviceScaleFactor": 2,
"mobile": true,
"height": 1280,
"width": 800,
"touch": true,
"userAgent": "Mozilla/5.0 (Linux; U; en-us; KFAPWI Build/JDQ39) AppleWebKit/535.19 (KHTML, like Gecko) Silk/3.13 Safari/535.19 Silk-Accelerated=true"
},
"Laptop with MDPI screen": {
"deviceScaleFactor": 1,
"mobile": false,
"height": 1280,
"width": 800,
"touch": false,
"userAgent": ""
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment