Skip to content

Instantly share code, notes, and snippets.

@max-frai max-frai/.js Secret
Last active Mar 7, 2019

Embed
What would you like to do?
Get publication shares of Facebook post
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);
@mkka

This comment has been minimized.

Copy link

commented Apr 29, 2017

Ease, man...

@Konark-Web

This comment has been minimized.

Copy link

commented Mar 5, 2019

Broken :C

@drakonovpro

This comment has been minimized.

Copy link

commented Mar 7, 2019

К сожалению не работает, пофиксили в facebook на сегодня

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.