4

I created my own custom devices on the Chrome developer tools and I would like to export them and import them in other computers ( or the same one in future installations ) without having to re create them one by one.

Is it possible to import/export some items or the whole list?

enter image description here

Fabman
  • 333
  • 5
  • 20
  • It's inside `Preferences` file in your browser profile. – wOxxOm Sep 13 '21 at 17:35
  • Do you mean the Json file named `Preferences` on `C:\Users\%UserName%\AppData\Local\Google\Chrome\User Data\Default` . Is there any way to do it from the GUI?. – Fabman Sep 15 '21 at 11:14
  • You can open devtools-on-devtools for this panel and poke the internals, [example](https://stackoverflow.com/a/67422751). – wOxxOm Sep 15 '21 at 12:46

1 Answers1

3

As wOxxOm has commented, the data is in the Preferences file.

A more complete explanation for importing/exporting would be the following one:

  • On the source computer open a chrome tab and navigate to chrome://version/ this will give you some info. Get the Profile Path property, that's where the preferences file is saved.

  • Open the preferences file and look for the "customEmulatedDeviceList" property on this file and copy it, that's where all the custom devices have been stored.

  • Now open the same file on the target computer ( first close the Chrome browser or the new settings will be overriden by the current opened browser ) and paste the data you just copied. ( note: you need to create a custom device on this target computer or the "customEmulatedDeviceList" property won't exist ).

The structure to be selected, copied and pasted is easier to locate if you first format the json file with any auto formatter.

Fabman
  • 333
  • 5
  • 20
  • You also have to **Quit** a Chrome before saving changes, otherwise they won't apply (will be overriden) – nezort11 Apr 26 '23 at 11:49
  • `customEmulatedDeviceList` only showed up for me in the `Preferences` file after adding a custom device using Chrome's dev tools (GUI). – Sammeeey Jun 11 '23 at 15:45
  • @Sammeeey, yes, that is explained on the note on third bullet point. – Fabman Jun 13 '23 at 08:05
  • @nezort11, I forgot to add that, I'll edit the third bullet point to explain that. – Fabman Jun 13 '23 at 08:06