Created
May 16, 2018 15:26
-
-
Save authenticsebastian/21cdc62501d5e442a93020418a901bd0 to your computer and use it in GitHub Desktop.
Click on unfolded files in Github
This file contains 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
[].slice.call(document.querySelectorAll('.js-file-header')) | |
.filter((item) => item.dataset.path.indexOf('{file-name-part}') > -1 && !item.parentNode.classList.contains('Details--on')) | |
.map((header) => header.querySelector('.js-details-target')) | |
.forEach((item) => item.click()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment