Skip to content

Instantly share code, notes, and snippets.

@brianyang
Created November 3, 2014 15:05
Show Gist options
  • Save brianyang/58a9a62ec8f755b0f515 to your computer and use it in GitHub Desktop.
Save brianyang/58a9a62ec8f755b0f515 to your computer and use it in GitHub Desktop.
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