Make permanent changes to web pages with Chrome's Overrides Dev Tool

Local Overrides is a relatively new experimental feature of the Developer Tools of the Google Chrome web browser that you may use to make permanent changes to web pages similar to how you'd do so using userscripts or userstyles.

While most users may not want to modify style or other content on web pages they visit regularly; some users want to do so to remove annoyances, improve usability or make other modifications.

A good example is a site that is too bright in the eyes of the user. Using overrides, you could change the style of the website to a dark one so that it is more eye-pleasing. You can also use it to increase or decrease font sizes, change fonts, remove background images, or manipulate any other element on the page.

Setting up Local Overrides in Google Chrome

enable local overrides in chrome

Local Overrides is an experimental feature of Google Chrome that is available in all supported versions of the browser.

Here is what you need to do to enable it:

  1. Load chrome://flags/#enable-devtools-experiments in the browser's address bar and switch the flag to enabled. This allows Developer Tools experiments.
  2. Restart the web browser.
  3. Tap on F12 to bring up the Developer Tools interface.
  4. Tap on F1 in the interface to open the Preferences.
  5. Switch to the Experiments tab and check "Override requests with workspace project".
  6. Visit a web page that you want to make permanent changes on.
  7. Switch to the Sources panel in the Developer Tools.
  8. Click on the icon with the two arrows pointing to the left, and select Overrides from the menu.
  9. Select "setup overrides" and pick a local folder that you want to store the overrides in.
  10. Accept Chrome's request to access the folder.

Using Local Overrides in Google Chrome

chrome local overrides

Using overrides for resources is pretty straightforward. Open the Network panel in the browser to get started. If you don't see any loaded files reload the page to populate the listing.

Right-click on any resource file that you want to override and select the "save as override" option. Chrome saves the data to the local system and will use it instead of the original resource when it loads the web page.

You may edit the file then under Sources > Overrides. This works well for styles, but you can override pretty much any source file including HTML pages and JavaScript files.

Overrides are saved automatically, and you may delete them from the overrides listing in the Chrome Developer Tools, or use the preferences instead.

chrome overrides

The overrides section of the Developer Tools preferences list all sites with overrides. When you hover over an entry, you may delete it to remove all overrides or click on edit to change the domain name.

Check out the following instructional video that highlights how you may use the feature to improve the performance of web pages.

Closing Words

Local Overrides is an experimental feature which means that Google may pull it in the future or integrate it fully in the browser. For now, it is an excellent option to change the style or code of web pages that you visit regularly and an alternative to using userstyles or scripts for that.

The main advantage of the built-in option is that you can use Chrome's Developer Tools to see the changes in realtime without having to save external files manually and reload pages each time you make changes. (via gHacks)

Now You: Do you use userscripts or styles?


This article was first seen on ComTek's "TekBits" Technology News


Printer Friendly, PDF & Email

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2021 by ComTek Computer Services Inc.