Skip to content

Instantly share code, notes, and snippets.

@hraban
Created August 27, 2020 08:28
Show Gist options
  • Save hraban/4b0cce97ca1f120dd24d11617165d71a to your computer and use it in GitHub Desktop.
Save hraban/4b0cce97ca1f120dd24d11617165d71a to your computer and use it in GitHub Desktop.
Expand all resolved conversations on a GitHub PR
// create a bookmark with this value, or paste it directly in the address bar and press return
javascript:(() => {document.querySelector('[data-disable-with^=Loading]')?.click(); setTimeout(()=> document.querySelectorAll('.Details-content--closed').forEach(x => x.click()), 4000)})()
@sme-shyl001
Copy link

sme-shyl001 commented Nov 17, 2023

If PR has a lot Conversation (and more that 20 hidden) than it's can be modified to something like this:

javascript:(() => {function waitForLoadingElement() { const loadingElement = document.querySelector('[data-disable-with^=Loading]'); if (loadingElement) { loadingElement.click(); setTimeout(waitForLoadingElement, 4000);} setTimeout(()=> document.querySelectorAll('.Details-content--closed').forEach(x => x.click()), 4000); } waitForLoadingElement();})()

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