A browser extension for redirecting links to somewhere else. If you don't want to support some site for some reason, you can view the page's content in Google's WebCache. Or if the site is small and doesn't have a lot of resources and it could go down, when a lot of people visit the site, you can easily open the link in Internet Archive's Wayback Machine. archive.is is also provided from start and you can add more.
You can redirect links and the current page. Current page can be redirected by clicking the right mouse button on the page, not on any kind of media or other elements, but basically the background.
Left click redirects in the current tab and middle click opens a tab and redirects it. This doesn't work in the context menu in Chrome. And in Firefox for Android, a touch redirects the current tab and a long touch redirects in a new tab.
Watch a demo video what this add-on does.
The URL field denotes where the page or the link is redirected to. It must start with a scheme, e.g. https://. It can contain formats, which are replaced by the component parts of the link's or page's URL. If the URL doesn't contain any formats, the link's or page's URL is appended to this URL.
You can reorder redirections by dragging and dropping rows.
- %u - entire URL
- %s - scheme
- %h - hostname
- %p - whole path without the leading slash, or %p[N], where N is index of the
- path part. e.g. in http://example.com/a/b/c?param=1, %p[0] is a, %p[1] is b and %p[2] is c
- %q - all query parameters, or %q[KEY], where KEY is the name of the query parameter. e.g. in http://example.com/?a=1&b=2, %q[a] is 1 and %q[b] is 2
- %f - fragment
- %r[REGEX] - the regular expression is replaced with the match, or if capture groups are used, their matches are concatenated or empty string if there's no match. Right square brackets must be escaped in the regex. E.g. https://%r[[a-z.\]+]
There are examples in the other screenshot.
To enable a redirection everywhere, leave Enable URL field empty. If you want to enable it only on certain URLs, add the URL or part of it and you can use a regular expression also. This feature works only on versions 63 and newer.
Remember to save if you changed options!
More redirections and you can propose or share new redirections at GitHub in this issue: fluks#7
All proposed redirections in this gist.
- Access your data for all websites - Needed for disabling redirections on certain URLs.
- Access browser tabs - Get the URL of the current page.
Everything else is licensed as GPL3, but the images are licensed as GFDL 1.2/CC-by-sa-2.5/CC-by-sa-3.0. The author of the original image is Stephan Baum. The image was found on Wikimedia Commons.