Last active
September 12, 2018 02:54
-
-
Save kartikmaji/c03c998005e213a7d91b to your computer and use it in GitHub Desktop.
Twitter followers Handle
This file contains hidden or 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
| //Takes out twitter handle of all your followers | |
| var x = document.getElementsByClassName("u-linkComplex-target"); | |
| var i = 0; | |
| var followers_handle = ["iam_kartikmaji"] | |
| var following_counter = 1; | |
| var time = setInterval( | |
| function(){ | |
| i++; | |
| followers_handle[followers_handle.length] = x[i].innerText; | |
| window.scrollTo(0,document.body.scrollHeight); | |
| startTime(); | |
| }, 100); | |
| function startTime() | |
| { | |
| if(following_counter == 800) { //SUBSTITUTE YOUR NUMBER OF FOLLOWERS INSTEAD OF 800 | |
| clearInterval(time); | |
| } else { | |
| following_counter++; | |
| } | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment