Skip to content

Instantly share code, notes, and snippets.

@JSoet
Created October 19, 2021 22:48
Show Gist options
  • Save JSoet/d09732416298b1f70a6b20c27fc53ec1 to your computer and use it in GitHub Desktop.
Save JSoet/d09732416298b1f70a6b20c27fc53ec1 to your computer and use it in GitHub Desktop.
Github PR bookmarklet: Expand all collapsed files
javascript:
document.querySelectorAll('.file.Details:not(.Details--on) .js-details-target').forEach(node => node.click())
@JSoet
Copy link
Author

JSoet commented Oct 19, 2021

Useful for when you have 'viewed' a bunch of the files but then want to expand them again to see the files, without unclicking 'viewed', or manually going through and clicking them all.

(I haven't actually tried this as a bookmarklet, I just run it in console, but it's based on this one: https://gist.github.com/juanca/5fd799c5b094e3e4f8b709cd101d7403 so I thought I'd paste it as the same)

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