Created
November 3, 2014 15:05
-
-
Save brianyang/58a9a62ec8f755b0f515 to your computer and use it in GitHub Desktop.
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
javascript: function autoFollowBugWorkaround() { | |
if (followid === 7) { | |
followid = 0 | |
} else { | |
followid++ | |
} | |
$('.appFollow').eq(followid).mousedown() | |
} | |
function autoFollow() { | |
setTimeout(function() { | |
autoFollowBugWorkaround(); | |
console.log('Placed Click #' + clicks + ' after ' + clickInterval + ' milliseconds'); | |
document.title = 'Flutter AutoClick (' + clicks + '/' + clickGoal + ')'; | |
clicks++; | |
TurboClicker() | |
}, clickInterval) | |
} | |
function autoClick() { | |
if (clicks < clickGoal) { | |
autoFollow() | |
} else { | |
document.title = 'Flutter (AutoClick Complete)' | |
} | |
} | |
function TurboClicker() { | |
randomNumber = Math.floor(Math.random() * 1e3); | |
clickInterval = randomNumber / 2; | |
autoClick() | |
} | |
var clickGoal = prompt('How many clicks would you like?'), | |
clicks = 0, | |
clickInterval = 0, | |
followid = 0; | |
var clickGoal = 2000 | |
autoClick() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment