Skip to content

Instantly share code, notes, and snippets.

@seandlg
Created June 28, 2022 16:17
Show Gist options
  • Save seandlg/ec6289b35d6c5d7488dd4fbdb7387964 to your computer and use it in GitHub Desktop.
Save seandlg/ec6289b35d6c5d7488dd4fbdb7387964 to your computer and use it in GitHub Desktop.
Scroll to bottom
// 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