跳到主要内容
Redirect Link

Redirect Link EN

fluks · Firefox

Open and redirect a link or the current page to somewhere else. You can redirect a link you clicked or the current page to Google's WebCache, Wayback Machine and archive.is and you can add more.

4.0/5 4 人评分 159用户 v6.0.0当前版本
权限提示 该扩展申请访问所有网站(<all_urls>),意味着它可以读取你在任意站点的页面内容,包括已登录的页面。这是许多扩展正常工作的必要条件,但也值得你确认来源可信。

截图

  • Redirect Link 截图
  • Redirect Link 截图
  • Redirect Link 截图

简介

Usage

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 mouse click redirects in the current tab and middle click redirects in a new tab.

Watch a demo video what this add-on does.

Options

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.

Formats
%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.\]+]
%g[N] - Capturing group from EnableURL field, where N is the index of captured group.
%e[/REGEX/REPLACEMENT/FLAGS] - Replace REGEX with REPLACEMENT and optionally use FLAGS (i, g, etc.) using link/page URL as input. If you put some format before this format, it is used as input for this format. Example: http://a.com/%p[1]%e[/a|b|c/x/g] - %p[1] is used for input for %e and it changes all occurances of a, b and c to x from %p[1]

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.

The Open in a Container option doesn't do anything, unless containers are enabled in the browser.

You can reorder redirections by dragging and dropping redirection rows by pressing a drag button.

Remember to save if you changed options!

More redirections and you can propose or share new redirections at GitHub in this issue: https://github.com/fluks/redirect-link/issues/7.

All the proposed redirections in a file you can import: https://github.com/fluks/redirect-link/raw/master/redirect-link_settings.json

Permissions

  • Access your data for all websites - Needed for disabling redirections on certain URLs.
  • Access browser tabs - Get the URL of the current page.
  • Display notifications to you - A notification is shown on update, because of the change in mouse clicks.

Redirect Link 是做什么的

Redirect Link 是一款面向 Firefox 的实用工具类扩展,主要用来解决浏览器里某类具体的小问题。官方对它的介绍是:Open and redirect a link or the current page to somewhere else. You can redirect a link you clicked or the current page to Google's WebCache, Wayback Machine and archive.is and you can add more.在Firefox 附加组件商店(AMO)上,它当前版本 6.0.0,评分 4(4 人评价),约 159 名用户。

适合什么人用

从功能定位看,Redirect Link 更适合想补上浏览器原生缺失功能的用户。如果你平时只是偶尔遇到相关需求,用浏览器自带功能也能凑合;但如果这件事每天都发生,装一个专门处理它的扩展通常比手动操作省事得多。需要注意的是它作用于所有网站,装上后建议先观察一两天,确认不影响常用站点的正常使用。

怎么安装 Redirect Link

  1. 打开Firefox 附加组件商店(AMO)上的官方页面;
  2. 点「添加到浏览器」并确认权限提示;
  3. 装好后在扩展列表里固定图标,方便随时开关。

本站只做索引与介绍,安装包来自官方商店。如果商店页面提示当前地区不可用,说明该扩展未在你所在区域上架。

常见问题

Redirect Link 是免费的吗?

Redirect Link 在Firefox 附加组件商店(AMO)免费提供下载。它是浏览器扩展,装上就能直接用,不需要注册账号。

Redirect Link 安全吗?

它只申请了 0 项权限,范围比较克制,没有申请「读取所有网站数据」这种大权限。

Redirect Link 支持哪些浏览器?

当前收录的版本来自Firefox 附加组件商店(AMO),适用于 Firefox。同一个扩展在其他商店可能有对应版本,但功能与版本号不一定相同。

怎么卸载 Redirect Link?

在扩展管理页找到 Redirect Link,点移除即可。它在本地保存的设置会一起清掉,不会残留数据。

权限清单 来自 manifest.json 原文

站点访问 1

  • <all_urls>

接口权限 6

  • contextMenus
  • cookies
  • storage
  • tabs
  • webRequest
  • webRequestBlocking