Created
June 28, 2022 16:17
-
-
Save seandlg/ec6289b35d6c5d7488dd4fbdb7387964 to your computer and use it in GitHub Desktop.
Scroll to bottom
This file contains 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
// Simply run in console | |
(async() => { | |
const noScrolls = 30; | |
const waitBetweenScrolls = 100; | |
for (const it of Array(noScrolls)) { | |
window.scrollTo(0, document.body.scrollHeight); | |
await new Promise((resolve,reject) => {setTimeout(() => {resolve(true)}, waitBetweenScrolls)}) | |
} | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment