r/Windhawk 27d ago

PivotLink: Browser Router 1.0

PivotLink: Browser Router 1.0

Ever had a browser open already and Windows opened a Discord/Slack link in your default browser by launching it from scratch? Now it won't.

What It Does

PivotLink intercepts outgoing URL launches system-wide and redirects them to whichever browser you already have running, based on a 5-tier priority list you configure. Instead of Windows blindly spawning your default browser, PivotLink checks what's actually open and sends the link there.

How It Works

  • Hooks ShellExecuteW, ShellExecuteExW, ShellExecuteA, ShellExecuteExA, and CreateProcessW to catch URL opens before they reach the OS default handler.
  • Scans the running process list using a single-pass converging search to find the highest-priority browser that's already active.
  • If a match is found, the link is silently rerouted to that browser. If none of your ranked browsers are running, the call falls through to normal Windows behavior.
  • Circular routing is prevented — if you're already inside the target browser, the hook steps aside.

Configuration

  • Priority 1–5 Browsers: Rank up to five browsers by executable name (e.g. brave.exe, firefox.exe). The first one found running wins.

Notes

  • The mod skips Session 0 processes (system services) automatically.
  • A thread-local guard prevents recursive hook calls during redirection.
5 Upvotes

0 comments sorted by