Skip to content

Instantly share code, notes, and snippets.

@agamm
Last active July 24, 2024 09:10
Show Gist options
  • Save agamm/ea65f0510e65e67f65eca189d55ee32b to your computer and use it in GitHub Desktop.
Save agamm/ea65f0510e65e67f65eca189d55ee32b to your computer and use it in GitHub Desktop.
Show all resolved comments in a Github Pull Request

Run this in the console:

document.querySelectorAll('span.Details-content--closed').forEach((e)=>{e.click()})

From the creator of: unzip.dev 🚀

@ardfar68
Copy link

to Unfold all Resolved conversation I use below and it works fine:
javascript:document.querySelectorAll('.js-resolvable-timeline-thread-container').forEach(e => { e.setAttribute('open', '') })()

What code should I use to Fold them again ?
thanks

@kemalizing
Copy link

kemalizing commented May 12, 2022

What code should I use to Fold them again ? thanks

just refresh?

@amonsosanz
Copy link

You can use Alt + Click on one comment to fold/unfold them all.

@jeanjackson-lp
Copy link

^ What @amonsosanz said worked for me. On Mac, that would be option + click

@mccataldo
Copy link

Thanks, @amonsosanz! 🎉

@qmcree
Copy link

qmcree commented Jul 24, 2023

Whoa, game changer. On Mac Chrome, Option + Click on one comment's "Show resolved" link shows all for me. Thanks @amonsosanz!

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