Automate GitHub PR Diffs With Simple Browser Script
Ever stuck clicking "Load diff" on GitHub? Run this script in browser's console to reveal all sections: `clickLoadDiff = () => { ... }` Automates clicks, saving time & effort!
Ever get stuck clicking through endless "Load diff" buttons on a giant GitHub pull request? It's the worst, right? While I’m all for using VSCode for reviews (seriously, check out my other post on that), if you’re sticking with GitHub, you can run a simple script in your browser's console to reveal all sections for you. Paste the script to browser's console The following script automates what you'd do manually - clicking all buttons to load the diffs — saving you time and effort: // Expand all "Load diff" buttons in a GitHub PR's /files page clickLoadDiff = () => { buttons = [...d...