I hereby claim:
- I am jonasdero on github.
- I am jonasdero (https://keybase.io/jonasdero) on keybase.
- I have a public key ASAwsLxPiwXJWR_WZxeNGpVNmrY-cw-9GdKrihHYiRsNNAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
function Sleep(milliseconds) { | |
return new Promise(resolve => setTimeout(resolve, milliseconds)); | |
} | |
stories = []; | |
async function getStories() { | |
for (let i = 0; i < 50; i++) { | |
window.scrollTo(0, document.body.scrollHeight); | |
await Sleep(250); | |
} |
function Sleep(milliseconds) { | |
return new Promise(resolve => setTimeout(resolve, milliseconds)); | |
} | |
function download(filename, text) { | |
var pom = document.createElement('a'); | |
pom.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text)); | |
pom.setAttribute('download', filename); | |
if (document.createEvent) { |
Getting started:
Related tutorials: