← All tools

Tool · Tampermonkey userscript

Webpage Guidelines

Photoshop-style rulers and guide lines on any live web page, with distances measured as you drag.

Version
0.1
Licence
MIT
Runs on
Any site
Shortcut
None (panel)

Needs the free Tampermonkey extension for Chrome, Firefox, Edge or Safari. Install it first, then the script.

01 / The check

Making sure elements line up

Design tools have guides; browsers don't. To check a build against its design, I wanted to drag guides onto the real page instead of eyeballing it or pasting screenshots into Photoshop.

02 / Features

What it does

  • Drag from the rulers

    Pull guides from the top or left bar, like in Figma or Photoshop.

  • Live distances

    Pixel gaps between guides and to the page edges.

  • Move or remove

    Drag a guide to move it, right-click to delete it.

  • Save guide sets

    For one page, a whole site, or everywhere.

  • Auto-load

    Saved guides reappear when you come back.

  • Tidy panel

    Draggable and collapsible, and it remembers where you left it.

03 / How to use it

4 steps

  1. Step 1: Install Tampermonkey, then the script.

  2. Step 2: Drag from the top bar for a horizontal guide, or the left bar for a vertical one.

  3. Step 3: Read the distances between guides as you move them.

  4. Step 4: Pick a scope and save, to reuse the guides next time.

04 / Under the hood

How it's built

Guides are positioned against the whole document, so they stay in place as you scroll and stretch as content loads. The control panel sits in a closed Shadow DOM, away from the page's own code.

  • Layout
  • Design QA
  • JavaScript
  • Shadow DOM
Next tool Responsive Viewport Overlay

All my userscripts, free and open source

Browse on GitHub