# Make Inspect Element changes stay

> Make Inspect Element changes stay after a refresh with Chrome’s Local Overrides, a user style or a user script. They last in your browser, never on the site.

Canonical page: https://sitepeel.dev/guides/make-inspect-element-changes-permanent/

Inspect Element changes can be made permanent in your own browser, never on the real site. In Chrome or Edge, open DevTools > Sources > Overrides, pick a folder, then save your edited copy of a file: it loads in place of the site’s on every reload. For CSS or scripts, use a user-style or user-script extension.

Published: 2026-11-11

Tool used in this guide: [Website text editor](https://sitepeel.dev/website-text-editor/index.md)

## In short

- Local Overrides in Chrome and Edge replace a site’s files with your saved copies
- User-style and user-script extensions apply your CSS or JavaScript on every visit
- All of it lives in your browser: the real site never changes
- To change a site for everyone, you have to own it

## How to use it

1. **Open the Overrides tab** Open DevTools, go to Sources and choose the Overrides tab in the left pane.
2. **Pick a folder** Click Select folder for overrides, choose an empty folder and click Allow.
3. **Override a file** In Network or Sources, right-click the page’s HTML or a stylesheet and choose Override content.
4. **Edit and save** Change the file in Sources and press Ctrl+S (Cmd+S on a Mac).
5. **Reload the page** Reload with DevTools open. Your saved copy loads in place of the site’s file.

## Why Inspect Element changes disappear

Inspect Element edits the copy of the page your browser is holding. A reload asks the server for the page again, and the server still has the original. Nothing you typed was ever sent to it.

So permanent can mean only one thing: your browser applies your change again each time the page loads.

## Ways to make a change stay

Ways to keep a change after a reload, in your own browser

| Way | What it keeps | Good to know |
| --- | --- | --- |
| Local Overrides in Chrome or Edge | Your edited copy of the site’s HTML, CSS or JavaScript files | Works while DevTools is open |
| Local Overrides in Safari | The same, in Web Inspector’s Sources tab | No effect unless Web Inspector is open |
| A user-style extension, such as Stylus | Your own CSS for a site | Applies on every visit, with DevTools closed |
| A user-script extension, such as Tampermonkey | Your own JavaScript, which can change text | Chrome asks you to allow user scripts first |
| A screenshot | A picture of the edited page | For mock-ups: the page itself still resets |

## Local Overrides in Chrome, in detail

- A file with an override gets a purple dot in Sources and Network.
- CSS you change in the Styles pane is saved too, when it comes from a stylesheet file.
- Text typed straight into the Elements panel is not saved. Change it in the page’s HTML file in Sources.
- On sites built by scripts, the words may sit in a JavaScript file or arrive as data, not in the HTML file.
- To stop, untick Enable Local Overrides in Sources > Overrides, or delete the file there.
- Edge has the same Overrides tab.

Good to know: The browser’s cache is off while Local Overrides are on, so pages can load a little slower.

## Keep CSS changes with a user style

Stylus is a free, open-source extension for Chrome and Firefox. You write CSS for a site once, and it applies on every visit with DevTools closed.

- Find the selector with Inspect Element first, then put your rule in a new style.
- Good for larger text, a narrower column or your own dark theme.
- It changes how a page looks, not what it says.

## Change text on every visit with a user script

A user-script manager such as Tampermonkey runs your JavaScript each time a page loads. A few lines can find a heading and replace its text.

- In Chrome, turn on Allow User Scripts for the extension (Developer mode on older versions) before scripts will run.
- Change the `@match` line to the site you mean, so the script runs only there.

Example: my-heading.user.js

```
// ==UserScript==
// @name   My heading
// @match  https://example.com/*
// ==/UserScript==
document.querySelector('h1').textContent = 'My own heading';
```

Watch out: Only install user scripts you can read. A script can see everything on the pages it runs on.

## What permanent can’t mean

- Other people never see your version. It exists in your browser only.
- Another device or browser starts from the original site again.
- A redesign of the site can break your override or your selector.
- Sitepeel’s Edit text and Move & delete tools are previews too: a reload resets them.
- To change your own site for everyone, edit it in its CMS or code.

- [Edit the text on any page, for now](https://sitepeel.dev/guides/edit-text-on-any-website/index.md)
- [Preview new copy before you publish it](https://sitepeel.dev/guides/preview-website-copy/index.md)

## Is using Inspect Element illegal?

No. Changing how a page looks in your own browser is normal: it is how developers test their work. What you do next is what matters.

Passing off an edited page or screenshot as real can be fraud. Using these tools to reach content or accounts you have no right to can break a site’s terms or the law.

## Questions and answers

### Can an Inspect Element be permanent?

Only in your own browser. Local Overrides in Chrome or Edge, or a user-style or user-script extension, apply your change again on each load. The real website stays the same for everyone else.

### How do I make Inspect Element stay on refresh?

In Chrome, open DevTools > Sources > Overrides, select a folder and click Allow. Right-click the file in Network or Sources, choose Override content, edit it and press Ctrl+S. Reload with DevTools open and your copy loads.

### How do I use Inspect Element to change text permanently?

Override the page’s HTML file with Local Overrides and change the text in Sources, or write a short user script that replaces the text on each load. Text typed into the Elements panel is not saved.

### Is using Inspect Element illegal?

No. It only changes the page inside your browser. The law and a site’s terms come in when an edited page is used to deceive someone, or when tools are used to reach things you aren’t allowed to.

### Can I permanently change someone else’s website?

No. You have no access to its server. Everything here changes only what your own browser shows you.

## Further reading

- [Chrome DevTools: override web content and HTTP response headers locally](https://developer.chrome.com/docs/devtools/overrides)
- [Microsoft Edge DevTools: override webpage resources with local copies](https://learn.microsoft.com/en-us/microsoft-edge/devtools/javascript/overrides)
- [WebKit: Local Overrides in Web Inspector](https://webkit.org/web-inspector/local-overrides/)
- [Stylus user styles manager](https://github.com/openstyles/stylus)
- [Tampermonkey FAQ: permission to run user scripts in Chrome](https://www.tampermonkey.net/faq.php?q=Q209)

## Related pages

- [Edit text on any website](https://sitepeel.dev/guides/edit-text-on-any-website/index.md): Edit or change the text on any web page: double-click it in Inspect Element, turn on document.designMode, or click and type with Sitepeel. Only you see it.
- [Inspect element shortcuts](https://sitepeel.dev/guides/inspect-element-shortcut/index.md): The inspect element shortcut for Chrome, Edge, Firefox and Safari on Windows, Mac, Linux and Chromebook, and what F12, Ctrl+Shift+I and Ctrl+Shift+C each open.
- [Inspect element on a Mac](https://sitepeel.dev/guides/inspect-element-on-mac/index.md): Inspect element on a Mac in Chrome, Safari, Firefox and Edge: the shortcuts, how to turn on Safari’s Develop menu, and why Inspect is missing or greyed out.
- [Website text editor](https://sitepeel.dev/website-text-editor/index.md): Try new headings and website copy directly in the layout. Edit text locally with Sitepeel to check wrapping and fit before updating your site.
- [Preview copy in a layout](https://sitepeel.dev/guides/preview-website-copy/index.md): Try new headlines, button labels and section orders in place with Sitepeel’s Edit text and Move & delete tools, before you change your site.
