https://github.com/lanceli/redirector
Redirector is a safari extension which allow redirect and block any http request by custom rules.
https://github.com/lanceli/redirector
Last synced: about 1 year ago
JSON representation
Redirector is a safari extension which allow redirect and block any http request by custom rules.
- Host: GitHub
- URL: https://github.com/lanceli/redirector
- Owner: lanceli
- License: mit
- Created: 2014-06-17T12:13:15.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-11-05T12:53:20.000Z (over 11 years ago)
- Last Synced: 2025-04-11T22:12:05.745Z (about 1 year ago)
- Language: JavaScript
- Size: 313 KB
- Stars: 26
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Redirector
> Redirector is a safari extension which allow redirect and block any http request by custom rules. Powered by [Safari Extension generator](https://github.com/lanceli/generator-safari-extension)
**[Download extension package](http://lanceli.github.io/redirector/redirector-latest.safariextz)**
For chrome, check out [Switcheroo Redirector](https://chrome.google.com/webstore/detail/switcheroo-redirector/cnmciclhnghalnpfhhleggldniplelbg)
## Rules Examples
### Redirect request
```
from_url,to_url
fonts.googleapis.com,fonts.useso.com
ajax.googleapis.com,ajax.useso.com
```
### Block Request
```
block_url
fonts.googleapis.com
googleapis.*\/.js
```
if you want disable any rule, just add comma in end of rule,
rule will disable when it contain more than one comma.
```
from_url,to_url,
block_url,,
```
## Usage for developer
For develop you need _Git_ and _Node.js_:
```
$ git clone git://github.com/lanceli/redirector.git
$ cd redirector
$ npm install
$ grunt debug
```
For release:
```
$ grunt
```
## Release History
See the [CHANGELOG](CHANGELOG).
## Contributors
Author: [Lance Li](http://github.com/lanceli)
## License
[MIT](LICENSE)