Giter VIP home page Giter VIP logo

browserselector's Introduction

Browser Selector

This tool can be configured as the default browser and switch to the correct browser depending on the FQDN. This is supposed to help in environments where you need to open certain tools in a specific browser.

Build

To build this tool you require the tool goversioninfo.

go get github.com/josephspurrier/goversioninfo/cmd/goversioninfo
go generate
go build

Config

You need to configure a config.yml file directly next to the browserselector.

browser: # define possible browsers
  iexplore: # call iexplorer with helper script to open new tab instead of new window
    exec: "C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe"
    script: "C:/tools/browserselector/iexplore.ps1" # see scripts folder
  edge: # call edge with helper script
    exec: "C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe"
    script: "C:/tools/browserselector/edge.ps1" # see scripts folder
  firefox:
    exec: "C:/Program Files/Mozilla Firefox/firefox.exe"

domain:
   - browser: "firefox" # name of browser
     regex: ".*"        # regex to match domain
     priority: 999      # priority - rules will be evaluated from lowest to highest
   - browser: "edge"
     regex: ".*\\.intra\\.net"
     priority: 100
   - browser: "firefox"
     regex: ""
     priority: 10

debug: true # optional

Installation

The attached Registry file can be used to configure the tool as the default browser. The path to the binary has to be updated depending on your installation.

; PATH NEEDS TO BE EDITED HERE
[HKEY_CURRENT_USER\Software\Classes\BrowserselectorURL\shell\open\command]
@="\"C:\\tools\\browserselector\\browserselector.exe\" -- \"%1\""

browserselector's People

Contributors

lukeb2e avatar

Stargazers

 avatar Marco Lecheler avatar Carl Kittelberger avatar

Watchers

Marco Lecheler avatar

browserselector's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.