Created
October 19, 2021 22:48
-
-
Save JSoet/d09732416298b1f70a6b20c27fc53ec1 to your computer and use it in GitHub Desktop.
Github PR bookmarklet: Expand all collapsed files
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
javascript: | |
document.querySelectorAll('.file.Details:not(.Details--on) .js-details-target').forEach(node => node.click()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)