Chrome extension boilerplate to define redirection rules
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


This repo is a minimalist Chrome extension to redirect files. I use it to redirect production scripts to local ones, but it can also be used for images, stylesheets, html... Nothing is automatic, no interface, this is a simple boilerplate for devs.


Edit app/manifest.json to include your production domain.

Add rules in app/js/background.js to define your redirections.

Load the extension (or reload it). Go on chrome://extensions/ then enable Developer mode, then add your module via the button Load unpacked extension.

Be careful

  • Everytime you make changes to the extension, you have to reload the app in the extension page (via the button reload under the extension)
  • If you redirect to localfile, they must be available via the same protocol for security reasons