1

Running MacOS Monterey and Firefox 122.0. How can I close all tabs at once?

I found on the net the suggestion to use "command" + w, but this closes only the current tab (which I could also achieve by pressing "control" + w.

The best solution I found so far is "shift" + "command" + w (which closes the current Window), followed by "command" + n (which opens a new window without open tabs).

10
  • What is the difference between closing all tabs and closing the window? If the last tab is gone, there isn’t anything left to show.
    – nohillside
    Commented Feb 6 at 9:08
  • After closing the tabs, I have a window where I can start a new browsing session. Say I have the computer running for a few days, and 20 or 30 open tabs accumulated. I find that this looks confusing. I would like instead start new work in a single open tab. If I close the window, I have to open a new window to do this. This is the approach I'm doing now (two key combinations). I wonder whether there is a way to have this with only one key combination. According to Google, this is supposed to be possible, but as explained, this suggested key combination does not work for me. Commented Feb 6 at 9:20
  • What about an Apple script called by say cmnd+alt+W which does shift+cmnd+W then cmnd+n
    – Solar Mike
    Commented Feb 6 at 9:24
  • @SolarMike : This would be a possibility, though I thought that perhaps Firefox already would provide such a feature. Is it possible to associate such a script with Firefox, i.e. that the hotkey for this script works ONLY when Firefox has the focus, and not with any other program? Otherwise if I accidentally press this cmd-alt-w in a different program, it would possibly cause there something unwanted. Commented Feb 6 at 9:29
  • 1
    So your complaint is now you want it to work in different applications while in your first comment you complained that you only wanted it to work in Firefox. Some people can never be satisfied...
    – Solar Mike
    Commented Feb 6 at 9:37

1 Answer 1

1

There is an extension called "close all tabs", which does exactly what I want:

2
  • Glad you found that - but it could have easily been done with an Automator Quick Action [Service], set to trigger on key command in only Firefox.
    – Tetsujin
    Commented Feb 6 at 12:35
  • 2
    @Tetsujin : I was not aware of Automator before, but it looks promising, and I think it can be of good use sooner or later. Commented Feb 7 at 11:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .