Chrome stores .user.js
scripts in a .ldb
, which isn't in a user accessible format to recovery. On some versions of macOS the provided python script can't compile the leveldb package. As a workaround, we can use the node level package to recover our userscripts.
brew install node
npm install level
node extract.js "/Users/$(whoami)/Library/Application Support/Google/Chrome Canary/backup/Default/Default/Local Extension Settings/dhdgffkkebhmkfjojejmpbldmpobfkfo"
I updated script again to extract values, originally it store it in JSON like:
{"origin": "normal", "value": ...}
and I also extracted metadata with a name instead of using UUID as a name.Here is updated version: