Scott Whittaker

Frontend Developer

Day job React | side projects Svelte

Access Chrome developer tools custom emulated device list

In the current day job I often need to test applications in the browser that require a custom User Agent string. In Chrome, these can be added via the Device Toolbar. See add a custom device.

I wanted to save the list of custom User Agent strings that I had added to Chrome, I couldn’t find an export utility and I could of course have just copied and pasted them somewhere but I was curious where these values were stored. A quick search result suggested that the data is saved on disk in Chrome preferences.

Chrome preferences location on disk on a mac

On a mac the Preferences file can be found here…

/Users/<username>/Library/Application Support/Google/Chrome/Default/Preferences

Preferences are saved as a JSON object and the custom emulated devices are saved as a JSON string on the following property…

devtools.preferences.customEmulatedDeviceList

Emulated device list

Here is the parsed list of emulated devices that I currently have added to Chrome.

HorizonMozilla/5.0 (Linux armv7l) AppleWebKit/602.1.28+ (KHTML, like Gecko) Version/9.1 Safari/601.5.17, VirginMedia_STB_05.4525.9616.13/EOS1008C-mon-web-00.02-092-fh-AL-20200519182625-un000 (Humax_liberty,EOS-1008C,Wired) HZN/4.25 (MN=EOS-1008C;PC=EOSSTB;FV=EOS1008C-mon-web-00.02-092-fh-AL-20200519182625-un000;)
TivoMozilla/5.0 (Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36 OPR/36.0.2128.0 OMI/4.8.0.129.JFK.500 TiVo, VirginMedia_STB_BCM7252S/20.8.1.RC11-VMB-11 (VirginMedia, TCDC68000, wired)
YouViewYouViewHTML/1.0 AppleWebKit/538.1 (Humax; DTRT2100; 84B08500; CDS/32.53.10; API/3.2.0; PS/3.7.58) (+DVR+HTML+MHEG+IPCMC+DASH+DRM)
AmazonMozilla/5.0 (Linux; U; Android 4.2.2; en-us; AFTB Build/JDQ39) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
Amazon-LiveTVAndroid 4.2.2; AFT Build/JDQ39 All4/6.1.0
SoIPMozilla/5.0 (Linux; x86_64 GNU/Linux) AppleWebKit/601.1 (KHTML, like Gecko) Version/8.0 Safari/601.1 WPE Sky_OTT_RTD1319_2020/1.0.0 (Sky, XiOneUK, )
TizenMozilla/5.0 (SMART-TV; LINUX; Tizen 4.0) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 TV Safari/537.36
Tivo 2Mozilla/5.0 (Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36 OPR/36.0.2128.0 OMI/4.8.0.129.JFK.651 TiVo, VirginMedia_STB_BCM7252S/20.10.1.1.RC5-VMB-11 (VirginMedia, TCDC68000, wired)
FreesatOpera/9.80 (Linux mips; U; HbbTV/1.1.1 (; Freesat/1.0; hdr1000s; 1.0.0; 1.0.0; wired); ce-html/1.0; en) Presto/2.10.250 Version/11.60
webOS TV 5.0Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36 WebAppManager