在 Windows 上,根据url 启用不同的浏览器
BrowseRouter is sponsored by Linklever.
Linklever is like BrowseRouter, but it's cross-platform and has a user interface.
It's made by the same author, @nref, so you can expect the same quality and support.
Try Linklever today and save 15% with the code BROWSEROUTER2026
| Feature | BrowseRouter | Linklever |
|---|---|---|
| Registers as default browser | ✅ | ✅ |
| Rules | ✅ | ✅ |
| Source Apps | ✅ | ✅ |
| Filters | ✅ | ✅ |
| Windows | ✅ | ✅ |
| macOS | ❌ | ✅ |
| Linux | ❌ | ✅ |
| Detects installed browsers | ❌ | ✅ |
| GUI | ❌ | ✅ |
| Browser extension | ❌ | ✅ |
| Configuration | config files | via GUI |
On Windows, launch a different browser depending on the url.
…config.json and filters.json and customize as desired.BrowseRouter.exe without arguments. No need to run as admin.
It will register with Windows as a web browser and open the Settings app.
To unregister, run it again.
If you later move BrowseRouter to a new folder, or rename the exe, run it again to update the registration.BrowseRouter as the default browser.BrowseRouter becomes your default "browser". When you click a link, it decides which real browser to launch. If you have multiple browsers installed, this is very useful. Example use cases:
BrowseRouter is clean software. I, @nref, rest my reputation on it.
BrowseRouter contains no tracking, and it makes no network connections of its own whatsoever.
Your system administrator could know which pages you are visiting by auditing process start logs e.g. BrowseRouter.exe http://some-naughty-site.example. They would have the same information for any browser.
By default, BrowseRouter will show a desktop notification when it opens a link. You can disable this in config.json.
Important: config.ini is deprecated. Use config.json
For now, the app falls back to config.ini if config.json does not exist. This will be removed in a future version.
Example config.json:
…Example config.ini file (old, deprecated):
…C:\Program Files (x86)\Google\Chrome\Application\chrome.exe.%ProgramFiles(x86)%\Google\Chrome\Application\chrome.exe.chrome.exe with %ProgramFiles(x86)%\Google\Chrome\Application added to the PATH variable."chrome.exe" --new-windowBy default the URL to open is added as the last argument after the call to the executable. But if you want it to be called differently, or only partially, you can use specific tags in the arguments you provide. These tag will be replaced by their corresponding value in the URL :
{url} the full, untruncated URL{userinfo} the userinfo part of the URL, might be blank if not present in the URL{host} the host of the URL, most often this will be a domain name (subdomain included){port} the specific port of the URL, might be blank if not present in the URL{authority} the combination of userinfo, host and port separated by their respective delimiters if needed{path} the path of the URL, might be only / if the link targets the root of the domain{query} the query of the URL with the leading ?, might be blank if not present in the URL{fragment} the fragment of the URL with the leading #, might be blank if not present in the URLFor example if you want a browser which strip the query from the opened links, you can add this line:
noQueryFF = "firefox.exe" "{authority}{path}{fragment}"
More details and example about URI composition is available here!
A rule says where to send a link. It matches on either the URL or the source application, and names the browser to use.
"rules": [
{ "url": "*.youtube.com", "browser": "chrome" },
{ "source": "* - Notepad -> notepad", "browser": "ff" },
{ "url": "*", "browser": "chrome" }
]The first rule that matches wins, so the order of the list is the precedence.
Putting a url rule above a source rule sends matching links to that browser
even when they come from that source. Reversing the two reverses which one wins.
A rule sets either url or source, never both.
If no rule matches every URL, one is added at the end using the first browser in
browsers.
source matches the window title and the process name of the application that
opened the link, joined as "WindowTitle -> ProcessName". Clicking a link in
Notepad, whose window title ends in " - Notepad" and whose process is named
"notepad", matches "* - Notepad -> notepad". An application with no window
matches on its process alone, as in " -> AutoHotkey64".
Source patterns support wildcards and full regular expressions, described below. They do not support the query syntax, which has nothing to match against in a window title.
There are three ways to write a url pattern.
Simple wildcards:
"microsoft.com": "ie"
"*.microsoft.com": "ie"* is treated as a special character in URL patterns, and matches any characters (equivalent to the .* regex syntax).Full regular expressions:
"/sites\.google\.com/a/myproject.live\.com/": "chrome"Query filters:
"?www.youtube.com/redirect?*reddit.com*?": "ff"* is special, as with simple wildcards.Configuration files that use urls and sources instead of rules keep
working, and keep their existing behavior: every sources entry is tried before
every urls entry. To choose the order yourself, move them into one rules
list.
BrowseRouter can filter URLs before sending them to the browser. This is useful e.g. to remove tracking or deobfuscate URLs.
If a URL is filtered, it says so in the notification and log.
2025-06-14 22:18:07 BrowseRouter: Filtered URL: example.org -> example.com
Filters are defined in filters.json. Filters consist of a Find regex pattern and Replace template pattern. In the case of multiple matches, priority determines which pattern is used. Note that priority is inverted, e.g. 1 is takes precedences over 2.
[
{
"name": "change org to com",
"find": "(.*)org(.*)",
"_comment": "Below, the replacement is the first capture group + com + second capture group"
"replace": "$1com$2",
"priority": 4
}
]unescape(...) to un-urlescape obfuscated URLs before sending them to the browser. This is useful e.g. for Teams SafeLinks, Outlook URL Protection, or LinkedIn safety redirects. It's not strictly necessary, since the browser unescapes the URL anyway, but it cleans up the notification.[
{
"name": "Bypass Teams Safelinks",
"find": ".*teams\\.public\\.onecdn\\.static\\.microsoft.*safelinks.*[?&]url=([^&]+).*",
"replace": "unescape($1)",
"priority": 2
},
{
"name": "Bypass LinkedIn Safety Redirect",
"find": ".*linkedin\\.com/safety/go/\\?url=([^&]+).*",
"replace": "unescape($1)",
"_comment": "https://www.linkedin.com/safety/go/?url=https%3A%2F%2Fexample.com%2F&urlhash=qtTU opens https://example.com/",
"priority": 4
}
]See filters.json for more examples.
Logs are stored by default in %localappdata%/BrowseRouter/. For example, if you user name is joe, then the logs will be in C:\Users\joe\AppData\Local\BrowseRouter\.
You can change the directory in the log section of config.json.
You can enable disable or log files by setting "enabled": "true" or false in the log section of config.json.
If enabled is missing or doesn't equal true, logs will not be written.
Log entries are also written to the console and can be seen if e.g. if launched from Command Prompt, PowerShell, or Windows Terminal.
This is a fork of [BrowserSelector](https://gith
暂无开放 Issues,或尚未同步最近议题。