-
-
Save erikdw/9dae662848a09033cd79c8a9ef55413b to your computer and use it in GitHub Desktop.
Github PR bookmarklet: Load all file diffs
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
javascript: | |
document.querySelectorAll('.load-diff-button').forEach(node => node.click()); | |
document.querySelectorAll('.js-details-target').forEach(node => node.click()); | |
// Both of those buttons should have the '.btn-link' class too, but I wasn't able to quickly figure out how to | |
// add an AND condition to that. Tried the below, didn't work: | |
//document.querySelectorAll('[.btn-link][.load-diff-button]').forEach(node => node.click()); |
tonytrangmail
commented
Nov 4, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment