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
// to make it scroll forever | |
let interval = setInterval(() => window.scrollTo(0, document.body.scrollHeight)); | |
// to stop it | |
clearInterval(interval); |
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
/* | |
* 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. |