Created
September 20, 2017 10:32
-
-
Save konradkonrad/51fe73f6cfd353be754a4789f5871b93 to your computer and use it in GitHub Desktop.
expand all files in PR files view
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
function sleep(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} | |
async function expand_all() { | |
while (true) { | |
if ($$('tr.js-expandable-line a').map(function(x){x.click()}).length > 0) { | |
await sleep(200); | |
} else { break; } | |
} | |
} | |
expand_all(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment