https://github.com/msabitov/redir
Redirect extension for Chrome
https://github.com/msabitov/redir
browser-extension chrome extension-chrome redirect typescript
Last synced: about 2 months ago
JSON representation
Redirect extension for Chrome
- Host: GitHub
- URL: https://github.com/msabitov/redir
- Owner: msabitov
- License: mit
- Created: 2024-06-01T18:10:52.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-01T18:22:13.000Z (about 2 years ago)
- Last Synced: 2025-03-30T17:13:34.402Z (about 1 year ago)
- Topics: browser-extension, chrome, extension-chrome, redirect, typescript
- Language: TypeScript
- Homepage:
- Size: 208 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Redir - redirect extension
This extension provides a way to configure redirects in browser.
It's based on Manifest V3.
Currently, only Chrome / Yandex browser supported.
## Quick start
I recommend you to start from creation of simple redirect rules. They can be of two types
- Wildcard
- Regexp (RE2 syntax)
Regexp rules has two important limitation:
- the total number of regular expression rules cannot exceed 1000;
- each rule must be less than 2KB once compiled.
Don`t about the second one - once you try to save it, Redir will warn to prevent saving incorrect rules. So you can split you rule to multiple simpliest version and then combine them into rulesets.
Rulset is an arbitrary set of two or more rules that you can use to simplify your tasks. Ruleset can enable, disable and mark containing rules.
## Advanced use
If you are looking for tools to analyze what kind of requests are matching your rules you need to install unpacked version of this extension that is in **dist** directory.
In Redir devtools panel you can explore matched requests.