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"
A more general approach seems to be to go to chrome://version/ to find the profile path
then it would be "[profile path]/Local Extension Settings/..."
source: https://superuser.com/a/905304/631364