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?
Asked
Active
Viewed 6,872 times
2 Answers
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
- 74,770
- 16
- 179
- 206
1
You could use something like this chrome extension: https://github.com/misak113/drone.io-autoscroll

Michael Zabka
- 465
- 5
- 4