[TIL] Local Overrides in Chromium DevTools

2 min readchromium, devtools

TIL about Local Overrides in Chromium-based DevTools.

What it is

A feature that lets you make persistent edits to a website’s files — HTML, CSS, JS, images, even network responses — directly in DevTools, and have those edits survive page reloads, without actually changing anything on the server.

Why it’s useful

How to set it up

  1. Open DevTools and go to the Sources panel
  2. Open the Overrides tab in the sidebar
  3. Click “Select folder for overrides” and pick a local folder
  4. Click Allow when DevTools asks for permission to read/write it
  5. Edit a file directly in the Sources panel (or CSS in the Styles pane, if that CSS lives in an actual .css file) — DevTools saves the change into your chosen folder automatically
  6. A small purple dot marks files with an active override; review them anytime from the Overrides tab. Uncheck Enable Local Overrides to temporarily disable them, or click Clear to delete all override files for good

You can also kick this off from the Network panel: right-click any request and choose “Override content” or “Override headers” — useful for mocking a specific API response or patching response headers (e.g. CORS) without hunting for the file in Sources first.

Caveats

Overrides are scoped per-origin, so once set up, they keep applying to that site (while DevTools is open) until you clear them or uncheck Enable Local Overrides.