Skip to content

Instantly share code, notes, and snippets.

@roblevintennis
Created June 14, 2019 21:01
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 roblevintennis/5a9292c502e6e335e4c25f8f339665e7 to your computer and use it in GitHub Desktop.
Save roblevintennis/5a9292c502e6e335e4c25f8f339665e7 to your computer and use it in GitHub Desktop.
chrome snippet to get a list of Github PR files. Useful for then listing the acceptance criteria for a PR.
var log = []
document.querySelectorAll('.file-info > a').forEach(node => log.push(node.text))
console.log(log.join('\n'));
@roblevintennis
Copy link
Author

Also useful as a bookmarklet:

javascript:document.querySelectorAll('.load-diff-button').forEach(node => node.click())

  1. First open the large PR and scroll to the bottom
  2. Click above bookmarklet and then wait

Result. It will open the diffs for all files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment