Get publication shares of Facebook post
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 lastScroll = -1; | |
var loadTryCount = 70; | |
var nowTryCount = 0; | |
var result = "\n"; | |
var INTERVAL = window.setInterval(function() { | |
if (nowTryCount >= loadTryCount) | |
{ | |
window.clearInterval(INTERVAL); | |
var items = document.querySelectorAll('#repost_view_dialog .fbUserContent'); | |
for (var i=0; i < items.length; ++i) | |
{ | |
var account = items[i].querySelector('a.profileLink'); | |
result += account['href'] + ' — ' + account.textContent + '\n'; | |
} | |
console.log(result); | |
} | |
if (window.scrollY == lastScroll) | |
nowTryCount += 1; | |
else | |
nowTryCount = 0 | |
lastScroll = window.scrollY; | |
window.scrollBy(0, 1000); | |
}, 700); |
Broken :C
К сожалению не работает, пофиксили в facebook на сегодня
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ease, man...