Created
June 15, 2015 14:30
-
-
Save kartikmaji/adcb775c7a57dc8d3cc8 to your computer and use it in GitHub Desktop.
facebook_page_invite
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
| var x = document.getElementsByClassName("uiButton _1sm"); | |
| var i = 0; | |
| var time = setInterval( | |
| function(){ | |
| i++; | |
| x[i].click(); | |
| startTime(); | |
| if(i<100) //Autoscroll | |
| { | |
| window.scrollTo(0,document.body.scrollHeight); | |
| } | |
| }, 100); | |
| var following_counter = 1; | |
| function startTime() | |
| { | |
| if(following_counter == 1000) { | |
| clearInterval(time); | |
| } else { | |
| following_counter++; | |
| } | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment