Last active
December 16, 2025 13:45
-
-
Save vielhuber/06eef5f7aa8353606ae33d63ebd42008 to your computer and use it in GitHub Desktop.
anton app coin hack #js
This file contains hidden or 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
I’m not sure what you want to achieve with this, but all this does is implement a local coin storage, that has nothing to do with ANTONs. (Still cool I g but how does this help here? (Also, if you didn’t use an LLM, I will eat my broom (haha)))
And the other one is also overengineered, it just does the same local storage thing but with the actually real ANTON "log" function. (Btw the log thing actually is used for data storage, idk why but it’s not just for debug purposes)
As I said maybe you guys should look at the code of the frontend projects (like for example
app01), maybe you’ll understand what the code you sent actually does.You can parse the PDO that the client actually uses, or get it from here: https://projects.anton.app/update?project=app01&branch=master&version=0 (this is just json, so it’s much easier to parse)