Skip to content

Instantly share code, notes, and snippets.

View aureleoules's full-sized avatar

Aurèle Oulès aureleoules

View GitHub Profile
@aureleoules
aureleoules / unwrap-pr.js
Created September 15, 2022 08:24
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) => {