https://github.com/maxwellito/shuntr
Chrome extension boilerplate to define redirection rules
https://github.com/maxwellito/shuntr
Last synced: about 1 year ago
JSON representation
Chrome extension boilerplate to define redirection rules
- Host: GitHub
- URL: https://github.com/maxwellito/shuntr
- Owner: maxwellito
- License: mit
- Created: 2014-09-19T16:10:48.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-10-09T15:22:08.000Z (over 11 years ago)
- Last Synced: 2025-03-18T12:12:56.485Z (over 1 year ago)
- Language: JavaScript
- Size: 152 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Shuntr
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.
## Usage
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