Last active
November 11, 2024 17:39
-
-
Save vielhuber/06eef5f7aa8353606ae33d63ebd42008 to your computer and use it in GitHub Desktop.
anton app coin hack #js
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
coins = 42, | |
sourceId = localStorage.getItem('sourceId').split('"').join(''), | |
deviceLogId = localStorage.getItem('deviceLogId').split('"').join(''), | |
users = JSON.parse(localStorage.getItem('users')); | |
users.forEach(users__value => { | |
fetch('https://logger-lb-5.anton.app/events', { | |
method: 'POST', | |
'headers': { 'Content-Type': 'application/json' }, | |
body: JSON.stringify({ | |
"events":[{"event":"adjustCoins","value":coins,"src":sourceId,"created":(new Date()).toISOString()}], | |
"log":users__value.l, | |
"credentials":{"authToken":users__value.t,"deviceLogId":deviceLogId} | |
}), | |
}).then(v=>v).catch(v=>v).then(data => { window.location.reload(); }); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bin noch nicht ganz fertig
er funktioniert mit der websockez schnitstelle von anton