Created
August 27, 2020 08:28
-
-
Save hraban/4b0cce97ca1f120dd24d11617165d71a to your computer and use it in GitHub Desktop.
Expand all resolved conversations on a GitHub PR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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)})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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();})()