Skip to content

Instantly share code, notes, and snippets.

@aureleoules
Created September 15, 2022 08:24
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save aureleoules/6bafcf3e255bfd528ef4e3d034f87dbc to your computer and use it in GitHub Desktop.
Save aureleoules/6bafcf3e255bfd528ef4e3d034f87dbc to your computer and use it in GitHub Desktop.
Load all PR comments
javascript: (async function() {
async function unwrap() {
const loadMoreBtn = document.querySelector('button.ajax-pagination-btn.no-underline.pb-1.pt-0.px-4.mt-0.mb-1.color-bg-default.border-0');
if (loadMoreBtn) {
loadMoreBtn.click();
await setTimeout(unwrap, 5000);
}
}
await unwrap();
await setTimeout(() => document.querySelectorAll('span.Details-content--closed').forEach((e) => {
e.click()
}), 5000);
})();
@aureleoules
Copy link
Author

Can be copy pasted in a browser bookmark in the 'URL' field as is.

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