Link Cleaner

Remove desired parts from a URL via regular expression rules.

什麼是Link Cleaner?

Link Cleaner是由leocompson開發的Chrome擴展程式,該擴展的主要功能是“Remove desired parts from a URL via regular expression rules.”。

擴展截圖

screenshot
screenshot
screenshot

下載Link Cleaner擴展crx文件

下載Link Cleaner擴展crx格式的文件,手動將Chrome擴充功能安裝到瀏覽器中,也可以將crx文件分享給朋友,輕鬆安裝Chrome擴充功能。

擴展使用說明

                        Link Cleaner extension removes or replaces desired parts from a URL with regular expression rules. The toolbar button is the ON|OFF switch to enable or disable the extension.

To work with this addon, please first open the options page. In the middle section, add a regex filter to match the request URL on the left side, then write a regex substitution pattern on the right side. For example:

Sample left-side regular expression rule: ^http[s]\:\/\/(example\.com)[\/]\?query\-1\=Q1\&query\-2\=Q2\&query\-3\=Q3\&query\-4\=Q4
Sample right-side regular expression rule: https://\1?query-1=Q1

With the above regular expression rule, if you navigate to URL #1 below in the address bar, it will be redirected to URL #2 (as shown in the first screenshot).

URL #1: https://example.com?query-1=Q1&query-2=Q2&query-3=Q3&query-4=Q4
URL #2: https://example.com?query-1=Q1

Note 1: The first match of the regex filter within the left side URL, will be replaced with the pattern on the right side URL.

Note 2: In the regex substitution pattern, backslash-escaped digits (\1 to \9) are used to insert the corresponding capture groups. \0 refers to the entire matching text (see sample rule #1).

Note 3: This extension only works when a URL or link is about to load in a tab or window; it does not change the link's href within the page.

If you have a feature request or found a bug to report, please fill out the bug report form on the addon's homepage (https://mybrowseraddon.com/link-cleaner.html).                    

擴展基本資訊

名稱 Link Cleaner Link Cleaner
ID pclbemffjpghlfbdjdifapggphgokeok
官方網址 https://chromewebstore.google.com/detail/link-cleaner/pclbemffjpghlfbdjdifapggphgokeok
簡介 Remove desired parts from a URL via regular expression rules.
檔案大小 47.96 KB
安裝次數 498
目前版本 0.1.2
更新時間 2022-10-05
上架時間 2020-12-02
評分 1.00/5 共 2 次評分
開發者 leocompson
電子郵箱 [email protected]
付費類型 free
擴展官網 https://mybrowseraddon.com/link-cleaner.html
說明頁面URL https://mybrowseraddon.com/link-cleaner.html
支援的語言 en
manifest.json
{
    "update_url": "https:\/\/clients2.google.com\/service\/update2\/crx",
    "version": "0.1.2",
    "manifest_version": 3,
    "name": "Link Cleaner",
    "host_permissions": [
        "*:\/\/*\/*"
    ],
    "permissions": [
        "storage",
        "declarativeNetRequest"
    ],
    "homepage_url": "https:\/\/mybrowseraddon.com\/link-cleaner.html",
    "description": "Remove desired parts from a URL via regular expression rules.",
    "background": {
        "service_worker": "background.js"
    },
    "options_ui": {
        "open_in_tab": true,
        "page": "data\/options\/options.html"
    },
    "commands": {
        "toggle-default-mode": {
            "description": "Link Cleaner",
            "suggested_key": {
                "mac": "Command+Shift+D",
                "default": "Ctrl+Shift+D"
            }
        }
    },
    "action": {
        "default_title": "Link Cleaner",
        "default_icon": {
            "16": "data\/icons\/16.png",
            "32": "data\/icons\/32.png",
            "48": "data\/icons\/48.png",
            "64": "data\/icons\/64.png"
        }
    },
    "icons": {
        "16": "data\/icons\/16.png",
        "32": "data\/icons\/32.png",
        "48": "data\/icons\/48.png",
        "64": "data\/icons\/64.png",
        "128": "data\/icons\/128.png"
    }
}