I hate infinite scrolling! Do you? Have you ever needed to get to the bottom of 100-meter long facebook or Google+ page? Here is a solution!

How to automate infinite scrolling? While I work in other tabs?

I frequently find myself needing information that is somewhere down a long infinite-scroll page. Like searching for old tweets on Twitter, or old posts on Facebook. For the sake of this question, assume that I cannot just search for the content I want. I have to discover it by scrolling until I expose a certain date range. Is there a browser plugin or some other method that will let me set a given number of page-downs or seconds of scrolling and then get back to work elsewhere on my computer? Can I say “keep scrolling down in this window for 3 minutes” or “execute Page Down in this window 100 times” all while I’m working in another tab, or in Mail, or getting coffee?

 

Paste the following line into your browser’s javascript console and it will attempt to scroll down by one page, ten times each second, for 5 seconds. If you want more than 5 seconds, change the “5” near the end to some bigger number.

var i = setInterval(function(){window.scrollBy(0, window.innerHeight)}, 100); setTimeout(function(){clearInterval(i)}, 5 * 1000)

In Chrome, you can get the console for the browser by going to view > Developer > Javascript Console, and then selecting “Console”. Safari and Firefox have similar methods of accessing the console.

You can continue working in other tabs while this runs, the console is only open for the particular tab you had selected when you opened it.

posted by tylerkaraszewski at 10:30 PM on April 11, 2013 [5 favorites]

Other replies:

– This is exactly the sort of thing you can do with AutoHotkey.

– AutoIt can do this kind of thing as well, though if you’re using something that runs outside the browser rather than a greasemonkey script you can attach to the page you’re working on, you’ll probably need to open the page concerned in its own window.

– For Facebook: archivedbook.com will be your new best friend. Use it wisely, for it is immensely powerful.

– You know if you click your middle mouse button it’ll give you an autoscroll arrow?

– My low-tech solution to this is to jam a bit of paper into the pressed-down spacebar while I go make coffee. (The other solutions above are far smarter).

http://www.spacetornado.com/DoItAgain/ is a tool for just this task.

I hate infinite scrolling! Do you? Have you ever needed to get to the bottom of 100-meter long facebook or Google+ page? Here is a solution!

 

Share Button