Skip to content

Instantly share code, notes, and snippets.

View justinpersaud's full-sized avatar

Justin Persaud justinpersaud

View GitHub Profile
@justinpersaud
justinpersaud / gist:6993832c26c2359fba1ac6245ddb77c4
Created April 21, 2020 14:01
Expand all hidden github comments on issues
function loadAllComments() {
let needRescheduling = false;
const buttons = Array.from(document.querySelectorAll('button'));
buttons.forEach((button) => {
if (button.classList.contains('ajax-pagination-btn')) {
if(!button.hasAttribute('disabled') && button.innerText === 'Load more…') {
console.log("found", button);
needRescheduling = true;
button.dispatchEvent(new MouseEvent('click', {
bubbles: true,
### Keybase proof
I hereby claim:
* I am justinpersaud on github.
* I am justinpersaud (https://keybase.io/justinpersaud) on keybase.
* I have a public key whose fingerprint is 4D5C 4E62 3FD6 7D1F 354E CF7D D930 19B2 EE24 55D8
To claim this, I am signing this object: