Skip to content

Instantly share code, notes, and snippets.

@MrMoshkovitz
Last active December 23, 2020 10:43
Show Gist options
  • Save MrMoshkovitz/23d69e1c02aa28ea7dd4bbe89a88d7fb to your computer and use it in GitHub Desktop.
Save MrMoshkovitz/23d69e1c02aa28ea7dd4bbe89a88d7fb to your computer and use it in GitHub Desktop.
Github
"https://github.com/johanbrandhorst/collapse-gitlab-files/blob/master/collapse-all-gitlab-diffs.user.js"
//Pull Request Related
$(".diff-file").find("div.nothing-here-block").each(function (i){
if (!$(this).is(":visible")){
$(this).parents("div.file-holder").find("div.file-title").trigger("click");
}
});
//Commit Related
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment