Skip to content

Instantly share code, notes, and snippets.

@juanca
Created March 2, 2017 18:42
Show Gist options
  • Select an option

  • Save juanca/5fd799c5b094e3e4f8b709cd101d7403 to your computer and use it in GitHub Desktop.

Select an option

Save juanca/5fd799c5b094e3e4f8b709cd101d7403 to your computer and use it in GitHub Desktop.
Github PR bookmarklet: Load all file diffs
javascript:
document.querySelectorAll('.load-diff-button').forEach(node => node.click())
@mfn
Copy link

mfn commented Nov 21, 2025

I've used this bookmarklet for years!

Note: for me it does not work for the new Files Changed experience, but this one does:

javascript:document.querySelectorAll('button').forEach(button=>{if(button.textContent.includes('Load Diff'))button.click()});

HTH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment