I check the differences between versions of a project on Github or GitLab very often to review the changes introduced in a new version, but many times I am only interested in the changes in certain types of files. For example, in the changes introduced in the dependencies of a new version to know how to package the project for Gentoo.
This makes it a bit annoying to see very large diffs that have changes in too many files when I’m only interested in changes to a couple of file types and not the rest.
It would be very practical for me if all the changes were initially collapsed so I could quickly review what files have been changed and expand only the ones I need to see.
There are multiple requests to GitLab for this to be implemented, but apparently, it is very difficult or almost impossible.
So I’ve found my own way to do it with a bookmarklet in the browser.
buttons=document.getElementsByClassName("btn-octicon"); for (var i=0; i<buttons.length; i++) if (buttons[i].getAttribute("aria-expanded") == "true") buttons[i].click(); void(0);
If you are going to use these bookmarklets, don’t forget to add