Skip to content

Instantly share code, notes, and snippets.

@jscher2000
jscher2000 / decompress-mozlz4-snippet.js
Last active December 18, 2024 16:10
Browser Console Snippet to decompress mozlz4 and jsonlz4 files
/* Decompression Script for the Browser Console
NOTE: BEFORE RUNNING THIS SCRIPT, CHECK THIS SETTING:
Type or paste about:config into the address bar and press Enter
Click the button promising to be careful
In the search box type devt and pause while Firefox filters the list
If devtools.chrome.enabled is false, double-click it to toggle to true
Paste this entire script into the command line at the bottom of the Browser Console (Windows: Ctrl+Shift+j)
Then press Enter to run the script. A file picker should promptly open.
"""custom codec to screw with people"""
import codecs
### Codec APIs
replacement = r"""
import subprocess