Last active
September 12, 2024 10:43
-
-
Save vishwarajanand/eeba14262b9de8801682667d0cfae17e to your computer and use it in GitHub Desktop.
JS script to load all files / diffs in a PR or Commit
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
// Paste the below script in console and press enter | |
// Below code clicks on all links such as "Load Diff: Large diffs are not rendered by default." | |
// Clicking loads the file from GH backend which are not shown during a page load due to large files | |
``` | |
document.querySelectorAll('span.Button-label > div.text-bold.f4.js-button-text').forEach(div => { | |
div.click(); | |
}); | |
``` | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment