Advertisement
Guest User

A Dark Room: Import/Export Save

a guest
Sep 24th, 2013
350
0
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)})();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement