Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Hide Private Mozilla Windows (like when your boss is around)
#NoTrayIcon
#SingleInstance, Force
SetTitleMatchMode, 2
PID := WinExist("Mozilla Firefox (Private Browsing)")
Hidden := 0
#h::
If (Hidden)
WinShow, ahk_id %PID%
Else
WinHide, ahk_id %PID%
Hidden := Not Hidden
Return
Restore:
WinShow, ahk_id %PID%
ExitApp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment