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 4,254 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.
![](../../users/profiles/934239.webp)
Xan
- 66,873
- 13
- 150
- 174
1
You could use something like this chrome extension: https://github.com/misak113/drone.io-autoscroll
![](../../users/profiles/4609457.webp)
Michael Zabka
- 429
- 5
- 4