Created
June 14, 2019 21:01
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var log = [] | |
document.querySelectorAll('.file-info > a').forEach(node => log.push(node.text)) | |
console.log(log.join('\n')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also useful as a bookmarklet:
javascript:document.querySelectorAll('.load-diff-button').forEach(node => node.click())
Result. It will open the diffs for all files.