Skip to content

Instantly share code, notes, and snippets.

@e-t-l
Created October 14, 2026 07:58
Show Gist options
  • Select an option

  • Save e-t-l/6790930cb9c074332d304977cba5aaec to your computer and use it in GitHub Desktop.

Select an option

Save e-t-l/6790930cb9c074332d304977cba5aaec to your computer and use it in GitHub Desktop.
Close pinned Firefox tabs with Ctrl+ALt+W
#Requires AutoHotkey v2.0
SendMode "InputThenPlay"
; Close pinned tabs with Ctl+Alt+W
; FYI, it will briefly flash a context menu at the top of the screen.
#HotIf WinActive("ahk_exe firefox.exe")
; ^w:: ; uncomment this line to make Ctrl+W close pinned tabs too
^!w:: {
Send("+!f")
WinWait "ahk_class MozillaDropShadowWindowClass"
Send("c")
}
#HotIf
@e-t-l

e-t-l commented Oct 14, 2026

Copy link
Copy Markdown
Author

Requires installing AutoHotKey v2 from github.com/AutoHotkey or winget install Autohotkey. Only works on Windows.

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