Skip to content

Instantly share code, notes, and snippets.

@agamm
Last active July 10, 2026 14:40
Show Gist options
  • Select an option

  • Save agamm/ea65f0510e65e67f65eca189d55ee32b to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

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

kemalizing commented May 12, 2022

Copy link
Copy Markdown

What code should I use to Fold them again ? thanks

just refresh?

@amonsosanz

Copy link
Copy Markdown

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

@jeanjackson-lp

Copy link
Copy Markdown

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

@mccataldo

Copy link
Copy Markdown

Thanks, @amonsosanz! 🎉

@qmcree

qmcree commented Jul 24, 2023

Copy link
Copy Markdown

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

@Rasukarusan

Copy link
Copy Markdown

Thanks, @amonsosanz! 🎉

ghost commented Apr 12, 2025

Copy link
Copy Markdown

Thank you @amonsosanz!

@YenHub

YenHub commented Dec 8, 2025

Copy link
Copy Markdown

Neat trick, @qmcree! 🤝

@jscrui

jscrui commented Apr 21, 2026

Copy link
Copy Markdown

it doesn't work for me! option + click on the top right: show resolved.

@Sunasuna24

Sunasuna24 commented Apr 22, 2026

Copy link
Copy Markdown

option + click on Pull Request "show resolved" used to work for me, but recently it stopped working :(

@maelvls

maelvls commented May 22, 2026

Copy link
Copy Markdown

Same, option + click seems to be gone.

@alexisdouheret

Copy link
Copy Markdown

indeed alt + click doesn't work anymore

@mhsmith

mhsmith commented May 28, 2026

Copy link
Copy Markdown

@JacobArthurs

Copy link
Copy Markdown

None of the above worked for me. Tested June 2026:

document.querySelectorAll('button:has(.octicon-unfold)').forEach(e => e.click())

@DelevoXDG

Copy link
Copy Markdown

None of the above worked for me. Tested June 2026:

document.querySelectorAll('button:has(.octicon-unfold)').forEach(e => e.click())

Thank you! 🎖️

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