Created
February 23, 2015 17:19
-
-
Save fredley/c5e034147c250bbfcd36 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var decode = function(save){ | |
return LZString.decompressFromBase64(save.split("|")[1].substring(16)); | |
} | |
var encode = function(json){ | |
return btoa("1.0.19") + "|" + btoa("SAVE HAX0R3D") + LZString.compressToBase64(json); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
uh.. whats this do xd