1

I looked through the google chrome api and was unable to find anything on scrolling through a webpage. How would I proceed with making a google chrome extension that automatically scrolls down a webpage and specify where it stops scrolling?

Edasaur
  • 387
  • 1
  • 7
  • 19

2 Answers2

2

There is nothing in the Chrome APIs, because this is covered by the web platform APIs themselves.

window.scrollTo() and friends will help. You'll need to execute them in a content script.

If you just need to scroll to a particular element, give it an ID and navigate to it: http://example.com/#scrolltarget

As to which logic you want to apply to scroll "automatically", it's not clear from the question.

Xan
  • 71,217
  • 14
  • 165
  • 189
1

You could use something like this chrome extension: https://github.com/misak113/drone.io-autoscroll

Michael Zabka
  • 457
  • 5
  • 4