Ever had fifteen browser tabs open in Firefox, gone for “Close Tab” and just… slipped? “Close Other Tabs” is useful to some, but I daresay that putting it right there next to “Close Tab” in the context menu isn’t on the list of Top Ten Best Design Decisions Ever Made.
To be fair, it does give a warning prompt, but only if browser.tabs.warnOnClose is set to true (see about:config or Options -> Advanced -> Tabbed Browsing). For whatever reason — and by “whatever reason” I am referring to a vast and sinister conspiracy — it’s never enabled for me when it matters, so the matter of its existence is scant consolation.
“Close Other Tabs” must die. Thank God it’s in Firefox, then, because I ♥ userChrome.css:
menuitem[label="Close Other Tabs"] { display: none !important; }
It’s excessively easy to hide other things in the same way, too, without faffing around with chrome-editing extensions, or needing to find item ids with the DOM Inspector. It may be brittle and language-specific, but this particular menu item has no id anyway, so I don’t think there’s a better rule for hiding it.