A simple JavaScript program to smoothly scroll a web page with some control variables. Useful for making videos of pages that scroll (social media).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Rob Colbert 5b6fa752ac created 3 months ago
README.md program controls & docs 3 months ago
web-scroller.code-workspace created 3 months ago
web-scroller.js program controls & docs 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.