Skip to content

Instantly share code, notes, and snippets.

View sp4ce's full-sized avatar

Baptiste Pernet-Mugnier sp4ce

View GitHub Profile
#!/usr/bin/env python
# usage ./extract_tampermonkey_script.py "/home/<user>/.config/<browser>/Default/Local Extension Settings/<extension_id>"
# i.e.: ./extract_tampermonkey_script.py "/home/foo/.config/google-chrome-beta/Default/Local Extension Settings/gcalenpjmijncebpfijmoaglllgpjagf"
#
import leveldb
import sys
import re
import json
import codecs