URL Rewriter icon

URL Rewriter

Extension Actions

CRX ID
khncccgpokiedblbaahpfchghohlahje
Description from extension meta

Rewrite URLs using custom rules.

Image from store
URL Rewriter
Description from store

Rewrite omnibox strings into desired URLs.

Configure the rewrite rules you'd like in the extention options. Rules are of the form:

regex_with_capturing_groups --> some_url_with_%s1_and_%s2

Where %s1 and %s2 are the first and second capture groups, respectively.

For example, the following rules may be useful:

# Fallback: grab first URL and use it
.*(https?://[^\s]+).* --> %s1
.*(www\.[^\s]+).* --> %s1
.*(www\d+\.[^\s]+).* --> %s1
(.*) --> https://www.google.com/search?q=%s1

The first identifies a url starting with http and will go to that url.
The second identifies urls with www.
The third identifies urls such as www2, www3, etc
The fourth rule falls back on a google search for the entire string.

Latest reviews

Richard Rees
Excellent addon, could use a guide to rewriting URL, but works as intended and is very effective. Perfect to use with a network wide adblocker. For example, this will allow you to rewrite shopping links in google search, so it directs you to the actual target site rather than displaying it can't be reached. https://ad.doubleclick.net/*;m? --> %s2
Tony Bayart
Unable to make it work
Tony Bayart
Unable to make it work