Skip to content

Instantly share code, notes, and snippets.

View alesmit's full-sized avatar

Alessandro Mitelli alesmit

View GitHub Profile
@alesmit
alesmit / dont-stop-scrolling.js
Created November 8, 2018 00:01
Don't Stop Scrolling
// to make it scroll forever
let interval = setInterval(() => window.scrollTo(0, document.body.scrollHeight));
// to stop it
clearInterval(interval);
@alesmit
alesmit / rettiwt.js
Last active November 7, 2018 22:55
rettiwT - Extract tweets from the UI
/*
* Description:
* Use it to get an array of tweets from a twitter profile.
*
* Note: this may stop working if Twitter devs update the DOM.
* Last tested date: 2018-11-07
*
* How to use it:
* Copy-paste in the Chrome console, then type rettiwt() and hit Enter.
* Use JSON.stringify(rettiwt()) to get tweets data as a JSON string.