Skip to content

GitHub toggle diff comments

Rob Garrison edited this page Oct 24, 2022 · 16 revisions

A userscript that toggles diff/PR and commit comments

  • Comment block:
    • Each comment block now has a clickable toggle arrow in the upper right corner.
    • Click to collapse or expand the comment block.
    • Use Shift + click to collapse or expand all comment blocks in the file.
  • File block:
    • Show/Hide:
      • The ugly checkbox with a "Show comments" label is replaced with a "Show or hide all comments in this file" button.
      • Click to show or completely hide all the comment blocks in the file.
      • Use Shift + click to show or completely hide all the comment blocks in the file.
    • Expand/Collapse:
      • An "Expand or collapse all comments in this file" button was added next to the show/hide button.
      • Click to expand or collapse all the comments blocks in the file.
      • Use Shift + click to collapse or expand all comment blocks on the page.
  • Pull Request Toolbar/Sticky Header
    • Show/Hide:
      • A "Show or hide all comments" button was added next to the "Unified/Split" button.
      • Click to show or completely hide all the comment blocks on the page.
    • Expand/Collapse:
      • A "Expand or collapse all comments" button was added next to the "Unified/Split" button.
      • Click to expand or collapse all the comment blocks on the page.
  • Click this link to install from GitHub; or, install from GreasyFork or OpenUserJS.

Screenshot

Change Log

Version 0.3.3 (2022-10-24)

  • Fix source of JS error.
  • Update dependencies.

Version 0.3.2 (2021-07-21)

  • Update mutation script.
  • Update utils script.

Version 0.3.1 (2021-01-31)

  • Update mutation script.

Version 0.3.0 (2020-09-29)

Version 0.2.0 (2020-05-25)

Version 0.1.8 (2019-02-16)

  • Update GitHub icon.

Version 0.1.7 (2019-01-28)

  • Update mutation script.

Version 0.1.6 (2018-10-05)

  • Update mutation script.

Version 0.1.5 (2018-05-17)

  • Update mutation script.

Version 0.1.4 (2018-05-10)

  • Update mutation script.

Version 0.1.3 (2018-04-09)

  • Update mutation script url.

Version 0.1.2 (2018-01-30)

  • Update GM4 polyfill.

Version 0.1.1 (2017-12-17)

  • Only show global toggles with comments.
  • Use tooltips.
  • Use correct @grant setting.
  • Include commit pages.

Version 0.1.0 (2017-12-10)

  • Initial commit
Clone this wiki locally
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy