Auto-collapsing deleted files in Changes tab
### Description Deleted files are usually not something I'm concerned with, if the build/tests doesn't fail it's not used anyhow. But they clutter the screen and makes it annoying to scroll past it when scrolling up-n-down in review. Benefits: People usually don't care about deleted files, this saves bandwidth and loading time. ### Proposal Auto-collapse deleted files. (Auto-collapsing moved files might also be a nice addition if we don't already) @kushalpandya helped my write this GreaseMonkey script that I'm using now. ```js (function() { var diffContainer = document.querySelector('#diff-notes-app'); var observer = new MutationObserver(function() { $(".js-file-title > .file-header-content > a:contains('deleted')").parent().parent().click(); }); observer.observe(diffContainer, { childList: true, subtree: true, }); })(); ``` ### Feature checklist Make sure these are completed before closing the issue, with a link to the relevant commit. - [ ] [Feature assurance](https://about.gitlab.com/handbook/product/#feature-assurance) - [ ] Documentation - [ ] Added to [features.yml](https://gitlab.com/gitlab-com/www-gitlab-com/blob/master/data/features.yml)
issue