GitHub Diff File Toggle

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

As of 2019-07-08. See the latest version.

Author
StylishThemes GitHub
Ratings
0 0 0
Version
1.2.6
Created
2016-04-15
Updated
2019-07-08
Size
4.34 KB
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