<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom"><title>Micah Stubbs's Weblog: chrome-extension</title><link href="https://micahstubbs.ai/" rel="alternate"/><link href="https://micahstubbs.ai/tags/chrome-extension.atom" rel="self"/><id>https://micahstubbs.ai/</id><updated>2026-01-24T17:24:58.101743+00:00</updated><author><name>Micah Stubbs</name></author><entry><title>Viewport Size: a tiny Chrome extension for seeing your viewport dimensions</title><link href="https://simonwillison.net/2026/Jan/24/viewport-size-a-tiny-chrome-extension-for-seeing-your-viewport-d/#atom-tag" rel="alternate"/><published>2026-01-24T17:24:58.101743+00:00</published><updated>2026-01-24T17:24:58.101743+00:00</updated><id>https://simonwillison.net/2026/Jan/24/viewport-size-a-tiny-chrome-extension-for-seeing-your-viewport-d/#atom-tag</id><summary type="html">
    I test responsive designs constantly. Chrome DevTools can do this, but I wanted something simpler. Just the current viewport width and height, visible at all times, updating as I drag the window edge.

I looked at [Viewport Resizer](https://chromewebstore.google.com/detail/viewport-resizer-ultimate/kapnjjcfcncngkadhpmijlkblpibdcgm) and [Window Resizer](https://chromewebstore.google.com/detail/window-resizer/kkelicaakdanhinjdeammmilcgefonfh). Both seemed heavier than I needed. I also couldn't easily verify what data they collect.

So I built my own.

#### How it works

The extension injects a small overlay into every page showing `width × height` in pixels. It updates as you resize. The overlay turns blue while you're actively dragging, which helps me know when I've stopped.

![Viewport overlay showing 728 × 342 on example.com](screenshot-in-context.png)

Click the extension icon and you get a popup with device presets:

![Extension popup with presets in context](screenshot.png)

There are quick resize presets for: iPhone SE, iPhone 14, iPhone 14 Pro Max, iPad Mini, iPad Pro 11" and 12.9", plus laptop (1366×768) and desktop HD (1920×1080). You can add your own presets for project-specific breakpoints. They persist via `chrome.storage.sync`.

#### No telemetry

This was the main reason I built it myself.

The extension makes zero network requests. No analytics. No telemetry. Works completely offline. The only permissions it needs are `activeTab` (to inject the overlay) and `storage` (to remember your settings).

Settings sync across your Chrome profile if you're signed in, but that's Chrome's built-in sync. Nothing goes to any third-party server. The [code](https://github.com/micahstubbs/viewport-size) is Apache-2.0 licensed.

#### Installation

```bash
git clone https://github.com/micahstubbs/viewport-size.git
```

Then in Chrome:  
1. Go to `chrome://extensions`  
2. Enable **Developer mode** (toggle in top-right)  
3. Click **Load unpacked** and select the `viewport-size` folder  

#### Source

Repository: [github.com/micahstubbs/viewport-size](https://github.com/micahstubbs/viewport-size)

If you do responsive work and want something lightweight that doesn't phone home, grab it.

    
        &lt;p&gt;Tags: &lt;a href="https://micahstubbs.net/tags/chrome-extension"&gt;chrome-extension&lt;/a&gt;, &lt;a href="https://micahstubbs.net/tags/tools"&gt;tools&lt;/a&gt;, &lt;a href="https://micahstubbs.net/tags/privacy"&gt;privacy&lt;/a&gt;&lt;/p&gt;
    

</summary><category term="chrome-extension"/><category term="tools"/><category term="privacy"/></entry></feed>