Created
October 31, 2023 08:15
-
-
Save Broxzier/701ab51266aa80bcb572f018c40f1050 to your computer and use it in GitHub Desktop.
Firefox private window for secondary github account
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.