Skip to content

Instantly share code, notes, and snippets.

@emesare
Last active February 25, 2024 16:16
Show Gist options
  • Save emesare/4ab6a43a5fbe1b1ef5764bdb76b782f3 to your computer and use it in GitHub Desktop.
Save emesare/4ab6a43a5fbe1b1ef5764bdb76b782f3 to your computer and use it in GitHub Desktop.
Danks asset.party slot claimer for s&box. NO LONGER SUPPORTED
// ==UserScript==
// @name Le claimer
// @namespace http://tampermonkey.net/
// @version 0.3
// @description try to claim yourself access to a game that doesn't exist (its a hoax)
// @author Dank (Discord: Dank#9470)
// @match https://asset.party/get/developer/preview
// @icon https://www.google.com/s2/favicons?sz=64&domain=asset.party
// @grant none
// ==/UserScript==
(function () {
'use strict';
var lastDrop = "";
// isNumeric: https://stackoverflow.com/questions/175739/
var isNumeric = function (str) {
return !isNaN(str) && !isNaN(parseFloat(str));
}
var isNewDrop = function () {
let nodes = document.querySelector('.tag').childNodes;
for (let i = 0; i < nodes.length; i++) {
let nodeText = nodes[i].textContent;
// Check to see if its the drop number then check if that drop number is different than last.
if (isNumeric(nodeText) && nodeText != lastDrop) {
return true;
}
}
return false;
}
var notify = function (title, text) {
if (window.Notification && Notification.permission === 'granted') {
// Send a notification that we tried to claim a slot.
new Notification(title, {
body: text,
// My profile pic, don't change!
icon: 'https://avatars.akamai.steamstatic.com/e4ae906ef560e0a6af53052b9de35cd79727291c_full.jpg',
});
}
console.log(text);
}
var DOMUpdate = function () {
// In case the website gets "updated".
let refreshDialog = document.querySelector('.components-reconnect-rejected');
if (refreshDialog != null) {
notify("Refreshing Site!", "Website update detected!");
location.reload();
}
let btn = document.querySelector("button.button.is-large.is-primary:enabled");
if (btn != null) {
if (!isNewDrop()) {
notify("Antibot Detected!", "If this wasnt antibot, report on github.");
return;
}
btn.click();
lastDrop = document.querySelector('.tag').childNodes[2].textContent;
notify("Claim Attempt!", "Your odds are pretty bad ngl");
}
};
console.log("LeClaimer version 0.3 by Dank (github.com/dankope)");
// Give perms to send our desktop notifications.
Notification.requestPermission().then(function (permission) {
if (permission === "granted") {
notify("LeClaimer Setup!", "Check back in a few years!");
}
});
// Hmmm today i will observe.
let MO = new MutationObserver(DOMUpdate);
MO.observe(document.body, {
attributes: true,
childList: true,
characterData: false,
subtree: true
});
})();
Copy link

ghost commented Aug 27, 2022

This doesn't work anymore they detect bots now.

@WrightsonJD
Copy link

Also, I think if you used it, you are banned from entering in the raffles. I disabled the bot and tried entering in and it would not let me.

@emesare
Copy link
Author

emesare commented Aug 28, 2022

This doesn't work anymore they detect bots now.

fixed

Also, I think if you used it, you are banned from entering in the raffles. I disabled the bot and tried entering in and it would not let me.

Ouch, good thing steam accounts are free!

@emesare
Copy link
Author

emesare commented Sep 1, 2022

Due to the recent change and stance by Facepunch on botting, I have decided to stop updates for this. Also, I don't think the current version works but you are free to try it, however I suggest everyone to instead use the forums to try and get a slot through experience rather than luck.

@CrimsonCuttle
Copy link

CrimsonCuttle commented Dec 8, 2022

Any way to change the delay to every 6 hours? (every loop)
The rapid-fire clicking got me blocked for a while.
If there is a way to delay it to this much, I think the bot will once again be functional.

@CrimsonCuttle
Copy link

Also, I think if you used it, you are banned from entering in the raffles. I disabled the bot and tried entering in and it would not let me.

It doesn't ban you forever, but it does for a good while. I was able to enter manually again after some days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment