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
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, |
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
### 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: |