Back to articles
NewsTools

youtube playables games save data is just plain json and you can edit it

via Reddit Programming/u/The_Crowned_King

so i was bored and decided to poke around in the dev tools on one of those youtube playables games (its like a supermarket idle game thing) and accidentally figured out you can just... edit your save data. No encryption nothing just raw json sitting there. Took me ~1 hour to figure out but basically the game is built in unity and runs in an iframe so first you have to switch the console context to the iframe (the dropdown at the top of the chrome console that says "top", click that) otherwise ytgame is just undefined and you'll be confused for ages like i was Anyway once you're in the right context you can just do the below and your entire save file just prints out in plain text. cash, gems, upgrades, unlocks, everything. i was NOT expecting that ytgame.game.loadData().then(data => console.log(data)) To inject your own save you just run: // Intercept loadData before game reads it const originalLoadData = ytgame.game.loadData.bind(ytgame.game)ytgame.game.loadData = function() { return o

Continue reading on Reddit Programming

Opens in a new tab

Read Full Article
1 views

Related Articles