-
-
Save melfa/0209db09596165ddadbcf179bb42afcf to your computer and use it in GitHub Desktop.
Github PR bookmarklet: Load all file diffs
This file contains hidden or 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
// Load first 50 diffs with only "Load Diff" button, without reason (this exclude large files, deleted files and so on) | |
javascript: | |
Array.from(document.querySelectorAll('.js-diff-load-button-container')).filter(container => !container.querySelector('.hidden-diff-reason')).slice(0, 50).forEach(container => container.querySelector('.load-diff-button').click()) | |
// Load diffs with only "Load Diff" button, without reason (this exclude large files, deleted files and so on) | |
javascript: | |
Array.from(document.querySelectorAll('.js-diff-load-button-container')).filter(container => !container.querySelector('.hidden-diff-reason')).forEach(container => container.querySelector('.load-diff-button').click()) | |
// Load all diffs | |
javascript: | |
document.querySelectorAll('.load-diff-button').forEach(node => node.click()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment