GitHub Diff File Toggle

A userscript that adds a toggle to show or hide diff files

Author
StylishThemes GitHub
Daily installs
0
Total installs
138
Ratings
3 0 0
Version
1.2.6
Created
2016-04-15
Updated
2020-03-01
License
MIT
Applies to

When viewing a commit diff, a file toggle button is added to each file header.

Click on the toggle button to either collapse or expand that file block, or use Shift + Click to collapse or expand all file blocks.

diff-collapse

In v1.1.0, an "accordion" mode was added. Use the Userscript addon settings panel to activate it.

accordion-mode

Hosted with ♥ at GitHub