SHARE
TWEET

A Dark Room: Import/Export Save

a guest Sep 24th, 2013 288 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. "Export save" bookmarklet:
  2.  
  3. 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)})();
  4.  
  5. Note: You have to use your mouse to right-click-select-all-copy, because the keyboard seems to be restricted in this page.
  6.  
  7. "Import save" bookmarklet:
  8.  
  9. 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)})();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top