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
// paste into console | |
function sleep(ms) {return new Promise(resolve => setTimeout(resolve, ms));} | |
$('a').filter(function(){ return $(this).text().indexOf('load more comments')>=0;}).each(async function(ind, link) {await sleep(1000*ind).then(function(){console.log("Clicking link: "+ind); link.click()})}) |