Posted April 15, 2019
renloz: You can use Tampermonkey with the linked script. If you don't want to install anything but don't want to do the conversion manually you can execute the function in the Javascript console in Chrome (Ctrl+Shift+J). Open the console on a tab that has the GOG main page loaded and paste the following:
(function () {const userData_games = JSON.parse(localStorage.userData_games); var games = []; for (const gameid of userData_games) { games.push(parseInt(gameid)); } const USER_KEY = "ngStorage-user"; var ngStorage_user = JSON.parse(localStorage.getItem(USER_KEY)); ngStorage_user.games.list = games; localStorage.setItem(USER_KEY, JSON.stringify(ngStorage_user)); })()
You should only do this if you undertand the code and trust the provider as it can be used to steal you account; in fact Firefox warns you about this when you try to paste for the first time. I didn't test if this works with Chrome as I don't have it installed but it should work.
Working. Thanks for this!!!(function () {const userData_games = JSON.parse(localStorage.userData_games); var games = []; for (const gameid of userData_games) { games.push(parseInt(gameid)); } const USER_KEY = "ngStorage-user"; var ngStorage_user = JSON.parse(localStorage.getItem(USER_KEY)); ngStorage_user.games.list = games; localStorage.setItem(USER_KEY, JSON.stringify(ngStorage_user)); })()
You should only do this if you undertand the code and trust the provider as it can be used to steal you account; in fact Firefox warns you about this when you try to paste for the first time. I didn't test if this works with Chrome as I don't have it installed but it should work.
Post edited April 15, 2019 by Lobuno