Browser Picker
A default browser replacement for windows to let you pick your preferred browser on the fly.
Installation
Simply download and install the latest MSI. To avoid warnings about unknown publisher, import the provided certificate into your certificate store first.
Configuration
To enable the browser picker window, you need to set Browser Picker as your default browser
Windows 10
Open the settings app from the start menu, navigate into Apps, select Default apps, then change the Web browser to BrowserPicker.
Usage
When you open a link outside a browser, one of two things will happen:
- If you have a single browser running, that one will be fed the url, unless you have enabled the "always ask" option.
- If you have more than one or zero, browsers running, you will be presented with a simple window asking you which browser to use.
When this window is open and has focus, you can use the following keyboard shortcuts:
[enter]
or [1]
Pick the first browser in the list
[2]
Pick the second browser in the list
...
[9]
Pick the ninth browser in the list
If you keep [alt]
pressed while hitting one of these, the browser will be opened in privacy mode.
[esc]
Abort and close window
If you click outside the window such that it loses focus, it will close without opening the url in any browser.
Each browser that supports it, has a blue shield button on the right side. Browsers currently supporting privacy mode are firefox, internet explorer, and chrome. Microsoft has not made a way of opening edge in privacy mode available from the command line yet, so it is not supported.
Currently running browsers will have their name in bold, whilst browsers not currently running will have their names in cursive.
As you use the application, it keeps count of how many times you selected each browser. This information is used to show you your browsers in your preferred order automatically.
At the bottom of the window, there is a checkbox to enable "always ask" and a hyperlink to open settings.
At the bottom of this window, there are three hyperlinks:
Add browser opens popup where you can manually add a browser that has not been detected - or some other tool that isn't a browser.
If you browse for the command first, the application will assume the executable also has an icon, and prefill that box.
The name of the application will be attempted to be set automatically based on information in the executable.
Tip for Chrome Users: If you are using multiple Chrome profiles, by default if you choose Chrome it will launch in the last
profile you launched Chrome with. To make it possibe for browser picker to select a profile you can create a new browser
for each profile, set the program to the chrome executable, and add a command line argument to specify which profile to launch:
--profile-directory=Default
for the first profile, --profile-directory="Profile 1"
for the second profile, and so on.
Please note that arguments with spaces do require "" around them to be properly passed to chrome.
Under the other tab, you can assign a default browser by domain:
If you want the defaults to only apply when the browser is already running, check the checkbox above the list.
When you open a link, the application will check if you have defined a default matching the end of the host part of the URL.
That is, if you open https://www.github.com/mortenn/BrowserPicker
, a default set for github.com
will match.
As the match happens on the end of the host, that url would also match hub.com
.
In addition to the default behaviour to match the end of the URL host, you can also apply prefix
and regex
matching:
- A rule of
|prefix|https://github.com/mortenn
applies matching to the start of the full URL, so would matchhttps://github.com/mortenn/BrowserPicker
but nothttps://github.com/stuartleeks/devcontainer-cli
- A rule of
|regex|.*/mortenn
applies the.*/mortenn
to the full URL, so would matchhttps://github.com/mortenn/BrowserPicker
If multiple matches are found for a url, the longest match will be used.