|
3 months ago | |
---|---|---|
README.md | 3 months ago | |
web-scroller.code-workspace | 3 months ago | |
web-scroller.js | 3 months ago |
README.md
web-scroller
A utility program written in JavaScript to scroll a web page with infinity scroll capability (social media). When you start the program, it begins scrolling the current page, and will continue scrolling as additional content is loaded.
The scroller doesn't stop until it hits the configured limit or the page has legitimately reached its end.
Running The Program
Just copy the text of the web-scroller.js file into your browser's console and press ENTER. The script does not communicate with any network resources at all. It simply scrolls the current page with providions for the page to dynamically grow (infinity scroll, social media, blogs, etc.)
Controlling The Program
The following control variables are offered by the program.
TOP_MARGIN
Specifies the number of pixels to use as a top margin when scrolling begins.
SCROLL_SPEED
Specifies the number of pixels moved by the scroller per frame.
START_DELAY_MS
Specifies a number of milliseconds to wait at the margin before scrolling begins. Useful for startup delays that give you time to hit "record" before scrolling begins.
HEIGHT
The maximum height of the document.