This project has moved and is read-only. For the latest updates, please go here.

About Mekhano SlingUriffic


When installed as the default browser on a Windows machine, SlingUriffic will redirect incoming URLs to the browser of choice based on Regex pattern matches. If you use different browsers to handle different sites, then this is the utility for you. SlingUriffic supports a default browser, so you may choose to add patterns to matches by exception only. An example settings.txt file follows below.

Setup


In the interest of open source and complete transparency, SlingUriffic does not automatically install itself in any way. Copy SlingUriffic.exe to any folder as the installation path. To create a setup script, run:
SlingUriffic.exe /setup
This will generate a setup.reg file that contains the necessary registry entries to register SlingUriffic as the Windows default browser, servicing http, https, and ftp. You can extend the setup script to service other protocols if desired by simply mirroring the existing settings for the added entries. The only setting that varies in the setup.reg file reflects the location of the SlingUriffic.exe file itself. If you move the exe, you will need to re-generate/execute the setup.reg file, or edit the registry directly, if preferred. Example exe location setting:

     [HKEY_CURRENT_USER\Software\Classes\SlingUrifficURL\shell\open\command]
     @="\"C:\\Program Files (x86)\\SlingUriffic\\SlingUriffic.exe\" \"%1\""

Of note, the icon that Windows will associate with URL shortcut files is specified in the setup.reg file, as shown below. You may substitute any valid icon path.

     [HKEY_CURRENT_USER\Software\Classes\SlingUrifficURL\DefaultIcon]
     @="C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe,1"

To complete the setup, double-click the setup.reg file to install the settings.

Settings


To edit the settings, run:
SlingUriffic.exe /settings
This will create a settings.txt file if one does not exist, or will edit an existing file. The file is stored as in the user profile path of the current user. On Windows 7, the path will be similar to:
C:\Users\[user name]\AppData\Roaming\Mekhano\SlingUriffic

Example Settings File:

<?xml version="1.0" encoding="us-ascii"?>
<Settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Browsers>
    <Browser Name="FF" Path="C:\Program Files (x86)\Mozilla Firefox\firefox.exe" IsDefault="true" />
    <Browser Name="IE" Path="C:\Program Files (x86)\Internet Explorer\iexplore.exe" Arguments="-nohome" />
  </Browsers>
  <Patterns>
    <Pattern BrowserName="IE" Match="codeplex.com" />
    <Pattern BrowserName="IE" Match="microsoft.com" />
  </Patterns>
</Settings>
In this case, codeplex.com and microsoft.com traffic is directed to Internet Explorer, and all other traffic will route to FireFox.

Usage


Once installed as the default browser, SlingUriffic will handle all browser requests and redirect them appropriately. It may be desirable to disable all specified browsers from checking if registered as the Windows default browser, otherwise you may get prompted to change the setting upon that browser launch.

Uninstall


To uninstall SlingUriffic, run whatever browser you wish to have the default browser, and make sure to have that browser detect if it is the default. The browser should prompt you to indicate that it is not the default browser and offer the opportunity to re-register itself.

Last edited Nov 3, 2013 at 4:38 PM by steveshortt, version 6

Comments

No comments yet.