Proposed enhancement: button to unfold all code in PRs files tab
Opened this issue · 0 comments
ibizaman commented
The following bookmarklet code can be used to automatically unfold folded code:
javascript:(function() {
var interval = setInterval(
function() {
var expand = document.getElementsByClassName("diff-expander");
if (expand.length == 0) {
console.log('Done expanding');
clearInterval(interval);
} else {
console.log('Expanding ' + expand.length);
for (i = 0; i < expand.length; ++i) {
expand[i].click()
}
}
}
, 1000);
}());
What do you think about adding this featur as an action in this extension?