Skip to content

Instantly share code, notes, and snippets.

@fjahr
Last active August 13, 2020 16:15
Show Gist options
  • Save fjahr/bfaf119dddae37c490a4949e956b3b7a to your computer and use it in GitHub Desktop.
Save fjahr/bfaf119dddae37c490a4949e956b3b7a to your computer and use it in GitHub Desktop.
Load all the GH comments
function f() {
setTimeout( () => {
if(document.getElementsByClassName("ajax-pagination-btn").length){
Array.from(document.getElementsByClassName("ajax-pagination-btn")).forEach(l => l.click());
f();
} else {
console.log("Done");
}
}, 1000); // May need to adjust this depending on your internet connection and machine performance
}
f();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment