amirshnll/custom-device-emulation-chrome
Über uns
Benutzerdefinierte Gerätesimulation in Chrome | Wie fügt man der Chrome-Simulation ein benutzerdefiniertes Gerät hinzu?
Spiele und EmulationGemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- -1
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
OriginalCustom 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
- Find your device in the JSON dataset or searchable catalogue below.
- Open Chrome DevTools with ⌘⌥I (macOS) or Ctrl+Shift+I (Windows/Linux).
- Toggle the device toolbar with ⌘⇧M or Ctrl+Shift+M.
- Select Dimensions → Edit → Add custom device.
- Enter the name, width, height and DPR. Choose the appropriate Mobile/Desktop type. User agent is optional; leave it blank when the dataset says
-. - 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
- Push these files to the repository's
mainbranch. - In Settings → Pages → Build and deployment, set Source to GitHub Actions.
- 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.

- Download this repository using Code → Download ZIP, then extract it (or clone it).
- Open
chrome://extensionsand enable Developer mode. - Choose Load unpacked and select the extracted
pluginfolder. - 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-cssandviewport-cssdistinguish 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.
Ähnliche Projekte entdecken
Wird geladen…