When a deprecated URL is entered in Chrome it should be changed to an updated URL based on a regular expression or similar.
I would like to do the following
- Input a rule to the system that changes “olddomain.com” to “newdomain.com”
- Enter a URL like “olddomain.com/stuff” in Chrome
- Chrome changes the url to “newdomain.com/stuff” and loads the page
- Repeat 2 and 3
But I don’t know if it is even possible. Any hint on where to look?
The chosen solution were to develop a small extension for chrome, which inserts a button next to the address bar.
The primary code is given below.
manifest.json
dostuff.html