URL Rewriter: Rewrite URLs with a custom regex
Extension stats
Other platforms
Extension summary
NOTES:
- Don't let the unimpressive rating fool you. This is a simple, no-nonsense extension that does exactly what it says and no more. You have to know how to create a Javascript-flavor regular expression to use it.
- Chrome will inform you that this extension can "Read your browsing history". This is a result of two permissions that we require: "webNavigation" to intercept navigation requests and rewrite the URL, and "tabs" to open the existing extension options page (if already exists) instead of creating a new one when you click on the icon. I do not care about your browsing history.
WHAT'S NEW:
- You can now remove part of a URL by leaving the replacement text blank.
- The test page warns you if your rewrite rule is going to remove the protocol (http://, https://) from URLs making them relative.
Based on "Host name rewriter" by Mattias Lundberg.
URL Rewriter edits certain URLs, whether typed in or linked, via a set of rules before navigating to the URL. A rule consists of a regular expression specified in capture groups, a capture group number to replace, and the replacement text for that group. When you click on a link or type a URL in the address bar, it is checked against each of the rules. If a matching rule is found, the text of the specified capturing group number is replaced with the specified text.
Example:
- Regex: ^(http[s]?://..)(toothboiler)(../watch?v=.*)$
- Group number to replace: 2
User reviews
Extension safety
Risk impact
URL Rewriter requires a few sensitive permissions. Exercise caution before installing.
Risk likelihood
URL Rewriter may not be trust-worthy. Avoid installing if possible unless you really trust this publisher.
Similar extensions
Here are some Chrome extensions that are similar to URL Rewriter: