Skip to content

Instantly share code, notes, and snippets.

@Broxzier
Created October 31, 2023 08:15
Show Gist options
  • Save Broxzier/701ab51266aa80bcb572f018c40f1050 to your computer and use it in GitHub Desktop.
Save Broxzier/701ab51266aa80bcb572f018c40f1050 to your computer and use it in GitHub Desktop.
Firefox private window for secondary github account
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run """C:\Program Files\Mozilla Firefox\firefox.exe"" -private-window https://github.com/login"
WScript.Sleep 4000
WshShell.SendKeys "<username or email address>{TAB}<password>{ENTER}"
@Broxzier
Copy link
Author

I got tired of always having to switch between two accounts at work, especially since one has 2FA enabled, and since profiles on Firefox don't work ideally in my eyes, I decided to create this alternative instead. This only works on Windows.

Usage: Replace <username or email address> and <password> with your login information (without the <>), then simply run the file.

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