Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

custom-device-emulation-chrome

> 编程语言
Open source

custom device emulation chrome | How To Add Custom Device on Chrome Emulation ?

729 stars0 likes0 views
WebsiteGitHub

About

custom device emulation chrome | How To Add Custom Device on Chrome Emulation ?

Custom Device Emulation Chrome

Device dimensions, pixel ratios and user agents for responsive testing in Chrome DevTools. Find a preset, copy its values and add a custom device in Chrome.

Browse the catalogue · Get the extension · Download JSON · Data quality

Quick start

  1. Find your device in the JSON dataset or searchable catalogue below.
  2. Open Chrome DevTools with ⌘⌥I (macOS) or Ctrl+Shift+I (Windows/Linux).
  3. Toggle the device toolbar with ⌘⇧M or Ctrl+Shift+M.
  4. Select Dimensions → Edit → Add custom device.
  5. Enter the name, width, height and DPR. Choose the appropriate Mobile/Desktop type. User agent is optional; leave it blank when the dataset says -.
  6. Click Add, then select the device from Dimensions.

Copy buttons copy text; they do not automatically import devices into Chrome.

Device catalogue

The included website searches all devices, filters by device type and data quality, and copies settings or user agents. Each record shows its source and measurement notes.

Run from the repository root:

python3 scripts/build.py
python3 -m http.server 8000 --directory dist

Open http://localhost:8000. The website uses plain HTML, CSS and JavaScript, with no package installation. Serve it over HTTP; opening the HTML file directly cannot reliably load JSON.

Publish with GitHub Pages

  1. Push these files to the repository's main branch.
  2. In Settings → Pages → Build and deployment, set Source to GitHub Actions.
  3. In Actions, run Deploy device catalogue to GitHub Pages (or push another commit to main).

The workflow validates the dataset, builds the static website and publishes only dist/. Subsequent pushes to main deploy automatically. No external hosting account or additional deployment secret is needed.

After the first successful deployment, the catalogue will be available at: Device catalogue on GitHub Pages.

For forks, use the URL shown by your repository's Pages deployment. The website uses relative asset and data URLs so it also works under a repository subpath.

Chrome extension

Custom Device Emulation Chrome puts searchable device dimensions in your Chrome toolbar.

  1. Download this repository using Code → Download ZIP, then extract it (or clone it).
  2. Open chrome://extensions and enable Developer mode.
  3. Choose Load unpacked and select the extracted plugin folder.
  4. Pin the extension and open it to search devices and view dimensions/DPR.

The extension displays presets; add them to DevTools using the quick start above. It reads the maintained dataset from GitHub, with a bundled offline fallback. No browsing-history permissions are requested. See the privacy policy.

No Chrome Web Store listing is linked here because a verified listing has not been provided.

Understand the data

  • Source checked: compared with a cited preset; not physical-device verified.
  • Needs review: historical community data with unknown source or measurement conditions.
  • screen-css and viewport-css distinguish full screen dimensions from browser content dimensions.
  • Desktop viewport depends on window size, display scaling and zoom. Historical desktop presets need review.
  • A user agent string does not make Chrome emulate Safari. Device Mode is an approximation; test critical behavior on real hardware.

See the measurement and maintenance policy, official Chrome guide, and historical table.

Contribute a device

Include its source, measurement type and verification date. See contributing. Found an incorrect preset? Report it.

If this saves you time while testing, star the repository to help other developers find it.

License

MIT. Cited third-party preset sources retain their own licenses; see the data policy.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScriptchromecustom-devicedevice-emulationemulation-chrome

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言