Last active
August 12, 2021 13:48
-
-
Save yusufusta/82e8397879fd29a470efefe57dd8b278 to your computer and use it in GitHub Desktop.
twitter auto-following script. open followers tab and run script.
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 span = document.getElementsByTagName("span"); | |
| var sure = prompt("Kaç saniye de bir takip yapılsın?", 1000); | |
| var i = 0; | |
| function sleep(ms) { | |
| return new Promise(resolve => setTimeout(resolve, ms)); | |
| } | |
| async function main () { | |
| var a = 0; | |
| for (i = 0; i < span.length; i++) { | |
| if (span[i].textContent == "Takip et") { | |
| span[i].click(); | |
| if (document.querySelector('div[role=alert]') != null) { | |
| console.log("Twitter engelledi. Script durduruluyor..."); | |
| break; | |
| } | |
| span[i].scrollIntoView(); | |
| console.log(i + " takip edildi, biraz bekleniliyor..."); | |
| a = a + 1; | |
| await sleep(sure); | |
| } | |
| } | |
| console.log(a + " kişi takip edildi!"); | |
| } | |
| main(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.