Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposed enhancement: button to unfold all code in PRs files tab #50

Open
ibizaman opened this issue Aug 27, 2017 · 0 comments
Open

Proposed enhancement: button to unfold all code in PRs files tab #50

ibizaman opened this issue Aug 27, 2017 · 0 comments

Comments

@ibizaman
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant