Skip to content

Instantly share code, notes, and snippets.

@dufferzafar
Created September 30, 2014 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dufferzafar/9b8760ed231a879c92a9 to your computer and use it in GitHub Desktop.
Save dufferzafar/9b8760ed231a879c92a9 to your computer and use it in GitHub Desktop.
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