Hi dsp0. I can't get this to work. I really have no clue how to code, and the debugger says there's a semicolon problem somewhere. I think if you posted an example of the full text needed to be saved I could figure it out. I'd appreciate it!
Fyo, the point is it's a mostly manual hack. I do not have a stand alone code for it, which would probably require hacking the game code due to browser security. I'm not really a coder, but that would probably require way more time to figure out than I am willing to dedicate to this.
You need to be more specific about what you did and what happened so that I actually understand what did not work for you. Are you in Firefox? and in the "developer console"? On windows press F12 (with your game tab/window open and active), otherwise it's in the menu somewhere. Chrome and its derivatives have similar console, but I do not use it so cannot tell you if it's the same or not.
The idea is to get json string of your local storage object, a value without semicolon is printed into the console, which is what you want. (console.log(JSON.stringify(window.localStorage)); does somethig similar but it does not escape the string, which makes it a manual nightmare to try to do). Here is what I get for my local storage on f95zone:
"{\"xf_multiQuoteThread\":\"{\\\"4331363\\\":[true]}\",\"xf_visitorCounts\":\"{\\\"time\\\":1602368519,\\\"conversations_unread\\\":\\\"0\\\",\\\"alerts_unread\\\":\\\"0\\\",\\\"total_unread\\\":\\\"0\\\"}\",\"xf___crossTab\":\"{\\\"event\\\":\\\"visitorCounts\\\",\\\"data\\\":{\\\"conversations_unread\\\":\\\"0\\\",\\\"alerts_unread\\\":\\\"0\\\",\\\"total_unread\\\":\\\"0\\\"},\\\"_\\\":\\\"Sat Oct 10 2020 22:22:00 GMT+0000 (Coordinated Universal Time)0.5946256544841636\\\"}\"}"
You need to copy the string and save it into a text file on your computer. That is your save. It will be a long string and the console folds it, make sure you copied the whole thing, not the truncated version ending in "..." When you want to restore it with the game open you go to the console again and enter:
tmp=JSON.parse(your saved string);
so for the saved string for f95zone I'd have the following:
tmp=JSON.parse("{\"xf_multiQuoteThread\":\"{\\\"4331363\\\":[true]}\",\"xf_visitorCounts\":\"{\\\"time\\\":1602368519,\\\"conversations_unread\\\":\\\"0\\\",\\\"alerts_unread\\\":\\\"0\\\",\\\"total_unread\\\":\\\"0\\\"}\",\"xf___crossTab\":\"{\\\"event\\\":\\\"visitorCounts\\\",\\\"data\\\":{\\\"conversations_unread\\\":\\\"0\\\",\\\"alerts_unread\\\":\\\"0\\\",\\\"total_unread\\\":\\\"0\\\"},\\\"_\\\":\\\"Sat Oct 10 2020 22:22:00 GMT+0000 (Coordinated Universal Time)0.5946256544841636\\\"}\"}");
After this you parse the key/value pairs and copy them from the tmp object into the local storage like this:
for (var key in tmp) window.localStorage[key]=tmp[key];
The browser does not allow you to overwrite the local storage object completely (which would have been a little simpler) with something like window.localStorage = your saved object.
Good luck!