Skip to content

Instantly share code, notes, and snippets.

@codeStryke
Created July 4, 2018 00:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codeStryke/cbb2115d8dde7a348ca39526d3e2e548 to your computer and use it in GitHub Desktop.
Save codeStryke/cbb2115d8dde7a348ca39526d3e2e548 to your computer and use it in GitHub Desktop.
Collapse all file diffs in a PR
var elems = document.querySelectorAll('.js-details-target');
for( var i = 0; i < elems.length; i++ ) {
elems[i].click();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment