A browser extension that allows users to create and manage rules for redirecting HTTP(S) requests based on URL patterns and transformations.
- Create, edit, and delete redirection rules
- Define complex URL patterns using regular expressions
- Apply multiple transformations to matched URL parts
- Toggle rules on/off easily
- Simple and intuitive user interface
- Node.js = v22.14
- pnpm >= v10.13.1
- Clone this repository
- Install dependencies:
pnpm install
- Build the extension:
pnpm build
- Load the extension in your browser:
- Chrome: Go to
chrome://extensions/, enable "Developer mode", and click "Load unpacked" - Firefox: Go to
about:debugging, click "This Firefox", and click "Load Temporary Add-on"
- Chrome: Go to
- Click the extension icon to open the popup
- Click "Manage Rules" to open the options page
- Click "Add New Rule"
- Fill in the rule details:
- Name: A descriptive name for the rule
- Description: Optional description of what the rule does
- Input Pattern: Regular expression to match URLs
- Output Pattern: Template for the new URL (use $1, $2, etc. for capture groups)
- Transformation Rules: Optional transformations to apply to matched parts
To redirect Google Translate URLs to their original source:
{
"name": "Avoid Google Translate Website",
"description": "Redirect google translate website to original website",
"inputPattern": "https://(.*).translate.goog/(.*)",
"outputPattern": "https://$1/$2",
"transformationRules": [
{
"type": "ReplaceAll",
"searchValue": "-",
"replaceValue": ".",
"target": 1
},
{
"type": "ReplaceAll",
"searchValue": "..",
"replaceValue": "-",
"target": 1
}
]
}This rule will transform:
https://docs-coqui-ai.translate.goog/en/latest/
into:
https://docs.coqui.ai/en/latest/
pnpm dev: Start development serverpnpm build: Build extension for productionpnpm package: Create a package for distribution
MIT