URL Rewriter

Rewrite URLs using custom rules.

什么是URL Rewriter?

URL Rewriter是由John Ahlgren开发的Chrome扩展程序,该扩展的主要功能是“Rewrite URLs using custom rules.”。

扩展截图

screenshot

下载URL Rewriter扩展crx文件

下载URL Rewriter扩展crx格式的文件,手动将Chrome插件安装到浏览器中,也可以将crx文件分享给朋友,轻松安装Chrome插件。

扩展使用说明

                        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.                    

扩展基本信息

名称 URL Rewriter URL Rewriter
ID khncccgpokiedblbaahpfchghohlahje
官方URL https://chromewebstore.google.com/detail/url-rewriter/khncccgpokiedblbaahpfchghohlahje
简介 Rewrite URLs using custom rules.
文件大小 11.3 KB
安装次数 79
当前版本 2.1
更新时间 2022-12-30
上架时间 2022-04-19
评分 1.00/5 共1次评分
开发者 John Ahlgren
电子邮箱 [email protected]
付费类型 free
支持的语言 en-US
manifest.json
{
    "background": {
        "service_worker": "background.js"
    },
    "description": "Rewrite URLs using custom rules.",
    "host_permissions": [
        "*:\/\/*\/*"
    ],
    "icons": {
        "128": "icons8-Edit-128.png",
        "16": "icons8-Edit-16.png",
        "48": "icons8-Edit-48.png"
    },
    "manifest_version": 3,
    "name": "URL Rewriter",
    "omnibox": {
        "keyword": "j"
    },
    "options_page": "options.html",
    "permissions": [
        "storage",
        "activeTab"
    ],
    "update_url": "https:\/\/clients2.google.com\/service\/update2\/crx",
    "version": "2.1"
}