Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
var pheight = 0;
function quickScroll(){
if(pheight < document.height){
pheight = document.height;
window.scrollBy(0, document.height);
setTimeout(quickScroll, 500); // adjust incase ajax is slow

This comment has been minimized.

Copy link

@wherestheprophet wherestheprophet commented Jul 17, 2014

Good start, but if you just run this and then save the page, you'll fail to save a lot of your stuff.

Facebook defaults most time periods (e.g. "Earlier in 2014", "2013", etc) to "Highlights" with a little menu to let you choose "All Stories" instead of Highlights. (Then in the "Highlights" sections, it inserts links here and there saying e.g. "More posts from July 12 to 14".) It also truncates the ends of many posts with "See more" links, and it truncates most comment threads saying e.g. "View 4 more comments". If you don't click on all these kinds of links, your saved page will fail to include all those truncated and hidden posts. I know very little about javascript or facebook's use of html, so it would be great if you would post an enhanced code fragment to unhide/show all these things so that people could really save everything!


This comment has been minimized.

Copy link
Owner Author

@nbriz nbriz commented Jul 17, 2014

@wherestheprophet i realize that + i agree, this is a kinda quick/dirty solution, but it's all on here so folks r free + encouraged to fork && improve :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment