Created
December 21, 2018 10:45
-
-
Save davidrenne/af714f8b683a478931edfd8381adb598 to your computer and use it in GitHub Desktop.
Paste into console to scroll forever and be able to stop it later. Perfect for screen scraping and just printing a pdf of most sites who forever load.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var scrollInt = 0; | |
function ScrollForever() { | |
scrollInt = window.setInterval(function() {window.scrollTo(0,document.body.scrollHeight);}, 1000); | |
} | |
function StopScrolling() { | |
window.clearInterval(scrollInt); | |
} | |
ScrollForever(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment