2 changed files with 30 additions and 12 deletions
@ -1,7 +1,25 @@ |
|||
# 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. It does not stop until it hits the configured limit or the page has legitimately reached its end. |
|||
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. |
|||
|
|||
## Running the Program |
|||
The scroller doesn't stop until it hits the configured limit or the page has legitimately reached its end. |
|||
|
|||
Just copy the text of the [web-scroller.js](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.) |
|||
## Running The Program |
|||
|
|||
Just copy the text of the [web-scroller.js](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. |
Loading…
Reference in new issue