Last active
February 13, 2024 13:53
-
-
Save DirkyJerky/a42579b1583ddf75483f 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); |
You need all the raffles opened in other tabs, then put the code into the console, for Firefox that's right click, inspect element (or Q) and then console, then copy and paste this.
BTW I have no idea what ScrapTF.Ajax is doing, can someone explain it please?
@Taazar It's essentially just a wrapper around jQuery.ajax(...) that has some error handling. It also prefills a bunch of generic arguments on the ajax call. (And showcases terrible API design by using POST for literally everything)
Is not working, you'll have an update?
works for me
not working anymore :D they added that captcha -_- gonna fix it myself :)
how do u remove captcha then i tried just deletin it from the script but it didnt work so wat do i do
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How can I use it