Skip to content

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

Open
@ibizaman

Description

@ibizaman

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions