mozilla 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #------------------------------------------------------------------------------
  2. # $File: mozilla,v 1.12 2021/04/26 15:56:00 christos Exp $
  3. # mozilla: file(1) magic for Mozilla XUL fastload files
  4. # (XUL.mfasl and XPC.mfasl)
  5. # URL: https://www.mozilla.org/
  6. # From: Josh Triplett <josh@freedesktop.org>
  7. 0 string XPCOM\nMozFASL\r\n\x1A Mozilla XUL fastload data
  8. # Probably the next magic line contains misspelled "mozLz40\0"
  9. 0 string mozLz4a Mozilla lz4 compressed bookmark data
  10. # From: Joerg Jenderek
  11. # URL: https://lz4.github.io/lz4/
  12. # Reference: https://github.com/avih/dejsonlz4/archive/master.zip/
  13. # dejsonlz4-master\src\dejsonlz4.c
  14. # Note: mostly JSON compressed with a non-standard LZ4 header
  15. # can be unpacked by dejsonlz4 but not lz4 program.
  16. 0 string mozLz40\0 Mozilla lz4 compressed data
  17. !:mime application/x-lz4+json
  18. # mozlz4 extension seems to be used for search/store, while jsonlz4 for bookmarks
  19. !:ext jsonlz4/mozlz4
  20. # decomp_size
  21. >8 ulelong x \b, originally %u bytes
  22. # lz4 data
  23. #>12 ubequad x \b, lz4 data %#16.16llx
  24. # From: Joerg Jenderek
  25. # URL: https://en.wikipedia.org/wiki/Firefox_4
  26. # Reference: https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT
  27. # Note: Most ZIP utilities are able to extract such archives
  28. # maybe only partly or after some warnings. Example:
  29. # zip -FF omni.ja --out omni.zip
  30. 4 string PK\001\002 Mozilla archive omni.ja
  31. !:mime application/x-zip
  32. !:ext ja
  33. # TODO:
  34. #>4 use zip-dir-entry