Dynamic URL Redirector

Latest Version

Version
0.6.0
Update
December 9, 2024
Size
163KiB
Developer
rxliuli.com
Category
Users
94
Rating
4.4 ★
Manifest Version
3
Web Store Status
Languages Support
English
See more
Permissions
Storage
Tabs
WebRequest
See more

Redirector Extension

🌟 Introduction
Redirector is a powerful and flexible browser extension that allows users to customize URL redirection rules. Using regular expressions, users can create complex redirection rules applicable to various websites and URL patterns.

✨ Key Features
• Create custom redirection rules using regular expressions
• Support for multiple redirection rules
• Real-time URL match testing
• Intuitive user interface for easy addition, editing, and deletion of rules
• Support for wildcards and complex URL patterns

🚀 How to Use
1. Click on the Redirector icon in the browser toolbar to open the options page
2. In the \"Add a redirect URL\" section:
- Enter the source URL pattern (using regular expression) in the left input box
- Enter the target URL in the right input box (you can use $1, $2, etc., to reference capture groups in the regular expression)
- Click the \"Add\" button to add a new rule
3. You can test your redirection rules in the \"Test URL\" section
4. Added rules will be displayed in the \"Rules\" list, where you can delete unnecessary rules at any time

📝 Example Rule
Regular expression is a powerful tool for matching URL patterns. Here are some examples:
- Redirect Google search to DuckDuckGo:
- From: `^https://www.google.com/search\\?q=(.*?)&.*$`
- To: `https://duckduckgo.com/?q=$1`
URLPattern is a more powerful and flexible tool for matching URL patterns. Here are some examples:
- Redirect Google search to DuckDuckGo:
- From: `https://www.google.com/search?q=:id`
- To: `https://duckduckgo.com/?q={{search.groups.id}}`

🔒 Privacy
This extension processes all redirection rules locally and does not collect or transmit any user data.

🤝 Contributions
Contributions are welcome! If you have any suggestions for improvements or have found a bug, please visit our GitHub repository to open an issue or submit a pull request.

📄 License
MIT License

📧 Contact
If you have any questions or suggestions, please contact us at [email protected].
Read more

Source Manifest.json

{
"update_url": "https://clients2.google.com/service/update2/crx",
"manifest_version":3,
"name":"Redirector",
"description":"Dynamic URL Redirector",
"version":"0.6.0",
"icons":{"16":"icon/16.png",
"32":"icon/32.png",
"48":"icon/48.png",
"96":"icon/96.png",
"128":"icon/128.png"},
"permissions":["storage",
"tabs",
"webRequest"],
"host_permissions":[""],
"action":{"default_icon":{"16":"icon/16.png",
"32":"icon/32.png",
"48":"icon/48.png",
"96":"icon/96.png",
"128":"icon/128.png"}},
"background":{"service_worker":"background.js"},
"options_ui":{"page":"options.html"}}
Read more