Skip to content

Instantly share code, notes, and snippets.

@rotten77
Created October 30, 2017 09:02
Show Gist options
  • Save rotten77/25ef006a5438da32d36cf22fcb652656 to your computer and use it in GitHub Desktop.
Save rotten77/25ef006a5438da32d36cf22fcb652656 to your computer and use it in GitHub Desktop.
var timer = setInterval(function(){
var moreLink = document.querySelectorAll('a.uiMorePagerPrimary');
if(moreLink.length>0) {
window.scrollTo(0,document.body.scrollHeight);
var i;
for (i = 0; i < moreLink.length; i++) {
moreLink[i].click();
}
} else {
console.clear();
var x = document.querySelectorAll('div.lists .fsl a[data-hovercard*="/ajax/"]');
var i;
for (i = 0; i < x.length; i++) {
var id = x[i].dataset.hovercard.replace(/.+id=([0-9]+)&.+/, '$1');
var name = x[i].text;
console.log(name + ';' + id);
}
clearTimeout(timer);
}
}, 5000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment