Skip to content

Instantly share code, notes, and snippets.

@konradkonrad
Created September 20, 2017 10:32
Show Gist options
  • Save konradkonrad/51fe73f6cfd353be754a4789f5871b93 to your computer and use it in GitHub Desktop.
Save konradkonrad/51fe73f6cfd353be754a4789f5871b93 to your computer and use it in GitHub Desktop.
expand all files in PR files view
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