A Chrome extension that displays the current viewport resolution and allows you to copy it to the clipboard.
- Displays the width and height of the viewport.
- Updates the display in real-time as you resize the window.
- Click to copy the resolution to your clipboard in the format
width x height.
- Clone this repository or download the source code.
- Open a terminal in the project directory and install the dependencies:
npm install
- Build the extension:
npm run build
- Open Google Chrome and navigate to
chrome://extensions. - Enable "Developer mode" in the top right corner.
- Click "Load unpacked".
- Select the
distfolder that was created in the project directory.
The Viewport Resolver extension icon will now appear in your Chrome toolbar. Click on it to see the current viewport resolution.