Skip to content

Instantly share code, notes, and snippets.

@1d10t
Created February 18, 2018 00:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 1d10t/43acf48b148eb0c0f81e591dfaaca4b1 to your computer and use it in GitHub Desktop.
Save 1d10t/43acf48b148eb0c0f81e591dfaaca4b1 to your computer and use it in GitHub Desktop.
facebook comments to texts
// click 'see more'
[].map.call(document.querySelectorAll('a.fss'), function(a){ a.click(); });
// get texts
[].map.call(document.querySelectorAll('.UFICommentActorAndBody'), function(d){ return d.querySelector('.UFICommentActorName').innerText+' пишет: '+d.querySelector('.UFICommentBody').innerText; }).join("\r\n\r\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment