http://phecoopwm6x7azx26ctuqcp6673bbqkrqfeoiz2wwk36sady5tqbdpqd.onion/posts/python/decompress-mozilla-firefox-jsonlz4-bookmark-backup-files.html
/usr/bin/env python import sys def mozlz4_to_text ( filepath ): # Given the path to a "mozlz4", "jsonlz4", "baklz4" etc. file, # return the uncompressed text. try : import lz4.block as lz4 except : import lz4 bytestream = open ( filepath , "rb" ) bytestream . read ( 8 ) # skip past the b"mozLz40\0" header valid_bytes = bytestream . read () text = lz4 . decompress ( valid_bytes ) return text print mozlz4_to_text ( sys . argv [ 1 ]) Usage Example # Dump Bookmarks out python mozlz4 . py ~/....