Skip to content

Tool to have the user select which browser to launch when a link is clicked.

License

Notifications You must be signed in to change notification settings

Joshua-Beatty/Browser-Picker

Repository files navigation

Browser Picker

A windows process that automatically routes links to the correct browser

Releases Platform License

This is A Tauri application which opens up a menu to let a user pick which browser to open a link in. It will default to the default browser unless once of the other browsers is open, at which point it will ask the user to choose.

Demo

This demo shows opening an unmatched link with no browsers open, so defaulting to the default browser.

Then the second link is matched to chrome so it opens in chrome.

Then another unmatched link, but now chrome is open, so it asks the user to chose the browser to load into. Demo

Browser Picker also features a tray icon for easy opening:

Demo

Install

Download the msi in releases and install Browser Picker.

Then go into windows settings and choose Browser Picker as your default browser.

Settings

The settings should be in the following format:

{
  "browsers": [
    {
      "default": true,
      "path": "C:\\Program Files\\Mozilla Firefox\\firefox.exe",
      "icon": "https://upload.wikimedia.org/wikipedia/commons/thumb/a/a0/Firefox_logo%2C_2019.svg/1971px-Firefox_logo%2C_2019.svg.png",
      "name": "firefox",
      "home": "about:home"
    },
    {
      "path": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe",
      "icon": "https://upload.wikimedia.org/wikipedia/commons/thumb/e/e1/Google_Chrome_icon_%28February_2022%29.svg/480px-Google_Chrome_icon_%28February_2022%29.svg.png",
      "name": "chrome",
      "home": "https://google.com",
      "matches": [
        ".+twitter.+"
      ]
    }
  ]
}

Default (Optional) specifies that this browser will be opened if the others are not running, have only one marked as default., if left undefined, defaults to false.

Path is the executable of the browser to launch

Icon is a link to an icon to display.

Home is the default home page to open if coming from browser picker directly and not a link event.

Name (Optional) is the process name to search for when trying to decide if a non default browser is open and if the user should be prompted to chose a browser.

Matches (Optional) is an array of regular expressions, that are tested against the URL, if any of them match that browser is used to open the link, this is checked before the default browser check.

Development

Clone this repo then run the following commands:

npm install
npm run tauri dev

Recommended IDE Setup

Notice

Icons in this application come from iconoir, heroicons, and Feather Icons

About

Tool to have the user select which browser to launch when a link is clicked.

Resources

License

Stars

Watchers

Forks

Packages

No packages published