Mottie / GitHub Toggle Expanders

Published:

Version: 2.1.0+3991a06 updated

Summary: A userscript that toggles all expanders when one expander is shift-clicked

Groups:

Support: https://github.com/Mottie/GitHub-userscripts/issues

License: MIT

A userscript that toggles all expanders when one expander is shift-clicked

  • This userscript works on repository commit, release, pull request & compare pages.
  • Toggle expanders ()
    • Click to toggle a single expander as normally.
    • Use Shift + Click on an expander to toggle all expanders within a date block (New behavior in v2.0.0)
    • Use (Ctrl or ) + Shift + Click on an expander to toggle all expanders on the page (New behavior in v2.0.0).
    • Example page: https://github.com/torvalds/linux/commits/master (Shift + click on a commit title ellipsis).
  • Resolved Outdated reviews (added v1.1.0; updated v2.0.0)
    • Click to toggle the resolved review as normally.
    • Use Shift + Click to toggle all outdated blocks within a single review.
    • Use (Ctrl or ) + Shift + Click to toggle all resolved blocks on the page.
  • The script was inspired by this thread: https://github.com/dear-github/dear-github/issues/193 and pull #22.
  • Click this link to install from GitHub; or, install from GreasyFork or OpenUserJS.
  • Compare pages
    • Click to toggle a single expander as normally.
    • Use Shift + Click on an expander to toggle all expanders on the page.
    • In this case, adding the Ctrl key does not change the behavior. As requested.

github-toggle-expanders

github-toggle-expanders-outdated

Hosted with ♥ at GitHub

Rating: 0