Viewport
window.innerWidth and innerHeight in CSS pixels.
Add a lightweight ScreenSize overlay to most pages you are debugging. It shows viewport size, DPR, breakpoints and overflow without installing an extension.
Drag this button to your bookmarks bar. Click it on a page you are debugging to toggle the ScreenSize overlay.
ScreenSize OverlayIf drag-and-drop is blocked by your browser, copy the code and create a bookmark manually.
javascript:(()=>{const s=document.createElement('script');s.src='https://screensize.net/bookmarklet/v1.js';s.referrerPolicy='no-referrer';s.onerror=()=>alert('ScreenSize overlay could not load. This page may block external bookmarklet scripts with Content Security Policy.');document.body.appendChild(s)})() window.innerWidth and innerHeight in CSS pixels.
window.devicePixelRatio for image and screenshot debugging.
Current Tailwind and Bootstrap ranges.
Document width compared with the viewport width.
The bookmarklet fetches one static JavaScript file from ScreenSize.net with a no-referrer policy where the browser supports it, then runs locally on the page. It does not actively send measurements, DOM content, page URLs or user identifiers back to the server. Some sites block external bookmarklet scripts with Content Security Policy; in that case the loader shows a failure message instead of silently doing nothing.
It measures the current page's viewport, screen, DPR, active Tailwind and Bootstrap breakpoints, document width and horizontal overflow.
No. The script runs in your browser, requests the overlay script with no-referrer where supported, and does not actively send the page URL, viewport, DOM content or measurements back to ScreenSize.net.
A bookmarklet works on the page you are actively debugging, so it is more useful for day-to-day responsive QA than a widget embedded on one site.