Last active
May 4, 2017 20:35
-
-
Save musantro/387e24286b9258bb5a336639736c9463 to your computer and use it in GitHub Desktop.
Script to follow everyone on GAIA
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
// Copy all lines from this code, open a tab and go to GAIA You & Me Section and | |
// paste it into Console of Google Chrome (Press F12 to show the Console), and press ENTER. | |
// enjoy #Gaians :) | |
var i = 1; // set your counter to 1 | |
function myLoop () { // create a loop function | |
setTimeout(function () { // call a 3s setTimeout when the loop is called | |
var element = document.querySelectorAll('.follow.ng-scope .follow-link'); | |
element[0].click() // your code here | |
i++; // increment the counter | |
if (i < 2800) { // if the counter < 10, call the loop function | |
myLoop(); // .. again which will trigger another | |
} // .. setTimeout() | |
}, 3000) | |
} | |
myLoop(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment