A Dark Room

I had been playing this for a while now today, after seeing this post.
And then I realized I was on an incognito window. -_-

And so I whipped this up to export/import saves.

Export:
Code:
javascript:(function(){var x=$("<textarea/>");x.text(btoa(localStorage.gameState));$("body").prepend(x);var y=$("<input type=button value=hide>");y.click(function(){x.remove();y.remove()});x.after(y)})();

You have to use your mouse to right-click-select-all-copy, because the keyboard seems to be restricted in this game's page.

Import:
Code:
javascript:(function(){var x=$("<textarea/>");$("body").prepend(x);var y=$("<input type=button value=load>");y.click(function(){localStorage.gameState=atob(x.val());location.reload()});x.after(y)})();
 
Back
Top