Last active
February 25, 2024 16:16
-
-
Save emesare/4ab6a43a5fbe1b1ef5764bdb76b782f3 to your computer and use it in GitHub Desktop.
Danks asset.party slot claimer for s&box. NO LONGER SUPPORTED
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
// ==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 | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It doesn't ban you forever, but it does for a good while. I was able to enter manually again after some days.