Follows #212 and #2087 **Note:** this feature is already offered natively by pressing the `i` key. This issue discusses what else can be done, if anything.  ## Possible additions - Add a tooltip on the menuitem explaining that they can press `i` to "toggle all" - Trigger GitHub's own feature by simulating a keypress when the menu item is `alt-clicked`: ```js document.dispatchEvent(new KeyboardEvent('keydown', {code: 'KeyI', key: 'i'})) ``` ### Alt-click The alt-click solution was discussed at length in https://github.com/sindresorhus/refined-github/pull/2087 and its last iteration was [this](https://github.com/sindresorhus/refined-github/pull/2087/files/0f89e4316428487528eb71fcf1185226e58b226b#diff-7259b235bc8829b04689968edcc74f94R30-R38). It didn't work in Firefox. 1. Go to https://github.com/sindresorhus/refined-github/pull/1896/files#diff-745c47517b47e007eb2f34f4d2072fa0 2. Open the file's dropdown 3. Alt-click "✓ Show comments" <img width="271" alt="Screenshot 2019-09-03 at 01 53 51" src="https://user-images.githubusercontent.com/1402241/64130637-c6565280-cded-11e9-9701-4d4652fa10b5.png"> It should hide **all** the comment threads on the page, as part of [`toggle-everything-with-alt`](https://github.com/sindresorhus/refined-github/pull/2087) ## Semi-related issue https://github.com/sindresorhus/refined-github/issues/2329
Activity
[-]Toggle all PR comments' visibility with alt+click[/-][+]Toggle all PR comments' visibility[/+]fregante commentedon Nov 10, 2019
I’d go with this:
It’s pretty easy and not as troublesome as the previously-tried alt-click implementation.
PR welcome via
aria-labelattribute andtooltippedclasses.