Skip to content
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
This repository was archived by the owner on Nov 18, 2021. It is now read-only.

Pull request page should allow to expand all comments quickly #1190

Open

Description

@findepi

When pull request has many comments, links from mail notifications no longer work. This happens when comment from mail is collapsed, hidden "behind" NN Hidden conversations \n Load More....
Please provide a button / option / whatever to expand all such hidden conversations.

Activity

  1. findepi commented on Feb 22, 2018

    @findepi
    Author
  2. findepi commented on Mar 1, 2018

    @findepi
    Author

    i mailed GH support about PR mail updates having dead links.

  3. OliverJAsh commented on Sep 12, 2018

    @OliverJAsh
    // Expand all collapsed commits
    
    $$('.js-timeline-progressive-disclosure-button').forEach(el => el.click());
    
    // Expand all collapsed conversations
    
    $$('button')
      .filter(el => el.innerText === 'Load more…')
      .forEach(el => el.click());
    
    // Expand all collapsed threads
    
    const collapsedEls = $$('.outdated-comment').filter(el => !el.open);
    
    collapsedEls.map(el => el.querySelector('.js-toggle-outdated-comments')).forEach(el => el.click());
    
    // Expand all collapsed outdated threads
    
    collapsedEls
      .map(el => el.querySelector('.js-toggle-outdated-comments'))
      .filter(el => el.querySelector('.show-outdated-button').textContent === 'Show outdated')
      .forEach(el => el.click());

    https://gist.github.com/OliverJAsh/bc842d8e50fb946a03af7d7b356d832d

  4. findepi commented on Sep 12, 2018

    @findepi
    Author

    @OliverJAsh this works unless there is even more comments; then "load more..." won't load everything at once, you need to click "load more..." in a loop until all are loaded.
    Did you try the script i published on userscripts (https://openuserjs.org/scripts/findepi/GitHub_PR_expand,_expand,_expand!)? It does exactly that.

  5. aeikum commented on Dec 9, 2019

    @aeikum

    @findepi That script works great, nice work! I'd suggest also matching issues URLs. I did this locally and it seems to work fine.

  6. findepi commented on Dec 17, 2019

    @findepi
    Author
  7. hassifmohd commented on Mar 27, 2020

    @hassifmohd
  8. findepi commented on Mar 27, 2020

    @findepi
    Author

    Go here and click install
    https://openuserjs.org/scripts/findepi/GitHub_PR_expand,_expand,_expand!

    @hassifmohd yes

    As you see above, ! is valid part of URL (ie won't be url-escaped when copying from browser address bar) but is not treated as such by markdown (obviously), so after the initial publish with ! I also published without ot avoid 404s.

    I didn't foresee this when picking up initial name...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions