-
-
Notifications
You must be signed in to change notification settings - Fork 165
GitHub diff files filter
Rob Garrison edited this page Jan 2, 2017
·
30 revisions
A userscript that adds filters that toggle diff & PR files by extension
- A group of buttons are added above diff & pull request files with file name extensions.
- Files with no extension will be labeled as "«no-ext»".
- Click on one more more buttons to toggle the view of the files.
- Special Filters:
- The "«all»" filter button toggles the view of all files.
- The "«no-ext»" filter button toggles all files that do not have an extension. It is only added if such files exist.
- The "«dot-files»" filter button toggles all dot-files (e.g.
.gitignore
,.gitattributes
, etc). It is only added if such files exist.
- Original idea from the Github Pr Filter extension.
- Click this link to install from GitHub, or install from GreasyFork.
- After installing, try the userscript on this page: repo inital commit.
- Check for empty arrays, then check type length.
- Initial commit.