-
-
Save SloRunner/30e28a87255690c3b2745411dd858a68 to your computer and use it in GitHub Desktop.
Enter all the raffles on http://scrap.tf/raffles
This file contains 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
ScrapTF.Raffles.Pagination.LoadNext(); | |
ScrapTF.Raffles.Pagination.LoadNext(); | |
ScrapTF.Raffles.Pagination.LoadNext(); | |
var i = 0; | |
var list; | |
setTimeout(function() { | |
list = document.getElementById("raffles-list").children; | |
list = [].filter.call(list, function(j) { | |
if (j.getAttribute("style") == "") { | |
return true; | |
} else { | |
return false; | |
} | |
}); | |
}, 3000); | |
function raffleLoop() { | |
setTimeout(function() { | |
raffleID = list[i].getAttribute("id").substring(11); | |
ScrapTF.Ajax("viewraffle/EnterRaffle", { | |
raffle: raffleID, | |
captcha: "", | |
rafflekey: undefined, | |
password: "" | |
}, function(data) { | |
console.log("Entered Raffle " + raffleID) | |
}, function(data) { | |
console.error("Cound not enter Raffle " + raffleID); | |
}); | |
i++; | |
if (i < list.length) { | |
raffleLoop(); | |
} else { | |
console.log("All Raffles Queued"); | |
} | |
}, 500); | |
} | |
setTimeout(function() { | |
raffleLoop() | |
}, 3000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment