Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save danwakefield/27fbe76db6f0d2c75da391aec60924e0 to your computer and use it in GitHub Desktop.
Save danwakefield/27fbe76db6f0d2c75da391aec60924e0 to your computer and use it in GitHub Desktop.
Papier extension export
# Export the text from the papier chrome extension (https://chromewebstore.google.com/detail/papier/hhjeaokafplhjoogdemakihhdhffacia)
# Extension was not updated to Manifest V3 and chrome won't allow it to be opened again so you lose you're notes.
# I was able to get them back with the below. You need go & jq, commands are for a Mac, but hopefully things work with other OS's
# No support given
$ go install github.com/cions/leveldb-cli/cmd/leveldb@latest
$ cp -r ~/Library/Application\ Support/Google/Chrome/Default/Local\ Storage/leveldb ~/documents/chrome-leveldb
$ rm ~/documents/chrome-leveldb/LOCK
$ cd ~/documents
$ level-db get "_chrome-extension://hhjeaokafplhjoogdemakihhdhffacia\0\x01papier-save" -d chrome-leveldb > key_value.txt
$ tail -c+2 key_value.txt | jq '.blocks[].text'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment