Created
October 30, 2017 09:02
-
-
Save rotten77/25ef006a5438da32d36cf22fcb652656 to your computer and use it in GitHub Desktop.
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
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