Displays viewport size and aspect ratio info

Latest Version

Version
1.0.0
Update
September 20, 2021
Size
211KiB
Developer
syntheticreality.net
Category
Users
4
Rating
0 ★
Manifest Version
3
Web Store Status
Languages Support
English
See more
Permissions
See more

Show VP details Extension

Chrome browser extension to display the viewport dimensions and aspect ratio in a popup. Uses Manifest V3.
This is a very simple extension that injects a bit of javascript into the target page.
When you load the extension it displays a popup with the viewport dimensions and aspect ratio as shown in the image. If you resize the window the displayed values track. The popup will display for five seconds before it gets out of the way. If you reload the tab the popup will also reload.
If you hit a hotkey the popup will come up and display the current values. If you hit a key within the first 1.5 seconds of loading the extension it will use that as its reload hotkey, otherwise the default is a lowercase \"r\" character.
Clicking the action icon only displays the popup on the first click to launch the extension. Once it is running you will need to use the hotkey or resize the window for the popup to display again.
We suggest using the \"on click\" choice and \"allow access to files\" on the extension Details page as shown in the image.
The extension doesn't require or use any permissions from Chrome.
The code consists of two files, the manifest.json and the javascript that is injected. Both are in a github repo at https://github.com/Bob-Wright/showVPdetailsExtension
Why do you need this? Check or test responsive web designs maybe?
If you need more punch than this simple popup suggest checking window resizer from coolx10.com
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "Show VP details", "description": "Displays viewport size and aspect ratio info", "author": "Bob Wright", "version": "1.0.0", "manifest_version": 3,"icons": { "16": "./images/isoblock16.png", "32": "./images/isoblock32.png", "48": "./images/isoblock48.png", "128": "./images/isoblock128.png" }, "action": { "default_title": "Show VP Details", "default_icon": { "16": "./images/isoblock16.png", "32": "./images/isoblock32.png", "48": "./images/isoblock48.png", "128": "./images/isoblock128.png" } }, "content_scripts": [ { "matches": ["*://*/*", "http://*/*", "https://*/*", "file:///*"], "js": ["showVPdetails.js"] } ]}
Read more

Similar Extensions