On this page9
Step by step
Open the Overrides tab
Open DevTools, go to Sources and choose the Overrides tab in the left pane.
Pick a folder
Click Select folder for overrides, choose an empty folder and click Allow.
Override a file
In Network or Sources, right-click the page’s HTML or a stylesheet and choose Override content.
Edit and save
Change the file in Sources and press Ctrl+S (Cmd+S on a Mac).
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
| 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.
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
@matchline to the site you mean, so the script runs only there.
// ==UserScript==
// @name My heading
// @match https://example.com/*
// ==/UserScript==
document.querySelector('h1').textContent = 'My own heading';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.
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
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.





