Decompress Mozilla Firefox bookmarks backup files
Current Firefox bookmarks backup files are stored as non-standard file format
based on lz4 compression. These files have a .jsonlz4
extension. Use
dejsonlz4
to decompress them.
lz4.c
and lz4.h
at this repository are verbatim copies from the Mozilla
repository as of 2016-05-12 (as currently used by Firefox) [1].
Usage: dejsonlz4 [-h] IN_FILE [OUT_FILE]
-h Display this help and exit.
Decompress Mozilla bookmarks backup file IN_FILE to OUT_FILE.
If OUT_FILE is '-' or missing, decompress to standard output.
Copyright (C) 2016, Avi Halachmi All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
gcc -Wall -o dejsonlz4 dejsonlz4.c lz4.c
dejsonlz4
on Windows does not support unicode path/file names at this time.
- Project page and source files: https://github.com/avih/dejsonlz4
- Releases and binary builds for Windows: https://github.com/avih/dejsonlz4/releases
- Mozilla Firefox bug 818587 - Compress bookmark backups.
- Mozilla Firefox bug 1209390 - Use standard lz4 file format instead of the non-standard jsonlz4/mozlz4.
[1] Mozilla's mercurial repo rev. c3f5e6079284: lz4.h and lz4.c