Question: how to use lz string?
Answer: First, download the file lz-string. js from the GitHub repository.
Second, import it in the page where you want to use it: <script language="javascript" src="lz-string.js"></script>
At last, call compress and decompress on the LZString object: