首页 扩展程序 URL Rewriter

URL Rewriter

提供方: Josh2112 Apps
11
生产工具 519 位用户

插件简介

Rewrite URLs according to a custom regex when accessing a web page.
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
- Replacement text: youtube

- If you click a link for "http://www.toothboiler.com/watch?v=abcdefg", it matches the regex rule and capture group 2 ("toothboiler") is replaced with "youtube" to result in "http://www.youtube.com/watch?v=abcdefg".

其他信息

ID gpbblpbcnjdnnjdcdclojoonfmpoionh 版本 0.13 上次更新日期 2018年5月23日 大小 445KiB 语言 支持1 种语言 适用浏览器

谷歌浏览器、其他Chromium内核的浏览器

URL Rewriter Chrome插件下载

为打击盗链困扰,本站已启用人机验证
微信扫码关注左侧公众号,发送“插件”二字获得验证码,验证码5分钟全站有效