Skip to content

Instantly share code, notes, and snippets.

@ericlaw1979
Last active May 9, 2025 21:02
Show Gist options
  • Save ericlaw1979/a39f743cc05daa6b77184057c01f7b6d to your computer and use it in GitHub Desktop.
Save ericlaw1979/a39f743cc05daa6b77184057c01f7b6d to your computer and use it in GitHub Desktop.
SingleBrowserMode button for Fiddler.
// Rules > Customize Rules, place this just inside the HANDLERS class...
// Add a button to Fiddler's UI for "Single Browser Mode", where only one browser window will
// send its traffic to Fiddler.
public static BindUIButton("SingleBrowserMode \uD83D\uDC40")
function LaunchSingleInstance() {
// Tell the system we're not the proxy anymore
FiddlerApplication.UI.actDetachProxy();
// Launch a single browser instance pointed directly at Fiddler.
System.Diagnostics.Process.Start('msedge.exe',
'--user-data-dir="%temp%\\throwaway" --no-first-run --proxy-server=127.0.0.1:' + CONFIG.ListenPort.ToString() + " about:blank");
}
@ericlaw1979
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment