title: How I can write the JavaScript code for Chrome extension that scroll down till end (I want to get all Facebook friends list)
body: <p>I'm working on a Chrome extension and I have to read all my friends on Facebook without API.
  I have used window.scrollTo(0, document.body.scrollHeight); in while loop with sleep function in Javascript but sleep pause all the javascript execution and Facebook data not load well.</p>
  <p>friend list link
  <a href="https://web.facebook.com/profile-id/friends_all" rel="nofollow noreferrer">https://web.facebook.com/profile-id/friends_all</a></p>