Skip to content

Instantly share code, notes, and snippets.

@vishwarajanand
Last active September 12, 2024 10:43
Show Gist options
  • Save vishwarajanand/eeba14262b9de8801682667d0cfae17e to your computer and use it in GitHub Desktop.
Save vishwarajanand/eeba14262b9de8801682667d0cfae17e to your computer and use it in GitHub Desktop.
JS script to load all files / diffs in a PR or Commit
// 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