Run this in the console:
document.querySelectorAll('span.Details-content--closed').forEach((e)=>{e.click()})
From the creator of: unzip.dev 🚀
Run this in the console:
document.querySelectorAll('span.Details-content--closed').forEach((e)=>{e.click()})
From the creator of: unzip.dev 🚀
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
What code should I use to Fold them again ? thanks
just refresh?
You can use Alt + Click
on one comment to fold/unfold them all.
^ What @amonsosanz said worked for me. On Mac, that would be option
+ click
Thanks, @amonsosanz! 🎉
Whoa, game changer. On Mac Chrome, Option + Click on one comment's "Show resolved" link shows all for me. Thanks @amonsosanz!
All of the above will not work when we have too many conversations.
For me, there was a PR having more than 120 comments, so first I had to get all the hidden items loaded, then expension of resolved comments needs to be done. For the same, I have written below script:
However, above too does not works as it seems like github is using some optimizations to load limited HTML at a time to keep page light.
So, to resolve this issue, we may have to add some scroll script too to above one, which I'll do after some time.
Note: This script worked on my company's enterprise github, I haven't tried the same on public git.