Skip to content

ov7a/browserRouter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Browser Router

This is a simple app to select a browser based on a URL. For example, open GitHub links in Firefox but open Google Docs in Chromium. Note that this is a CLI app; it accepts a URL as a command-line argument. It does not work with in-browser links; you'll need a custom browser extension for that.

It was made to get a taste of Zig.

Build

zig build

This app was originally developed with zig 0.11.

Install

For Linux:

  1. Edit config.cfg.
  2. run
    ./install_linux.sh
  3. (Optional) Click a link with schema to register schema in the browser. Since GH markdown does not support custom links, copy-paste this to address bar:
    data:text/html,%3Ca href="brouter%3Aexample.com"%3EExample%20Link%20brouter:example.com%3C/a%3E
    
    and click the link on the page. This might be useful combined with an extension that transforms all links.

For Mac:

While it works from CLI, Apple passes URLs via AppleEvents. So this app can't be used as a default browser (yet).

About

Route URLs to different browsers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published