9

Recently my chrome glitched and tampermonkey just stopped working. I uninstalled and then reinstalled extension (with hope that scripts stay in place), but my scripts got deleted. Luckily I have a backup of profile directory. So how I can restore them?

9

Not clean backup but something. Go to:

%LocalAppData%\Google\Chrome\User Data\Default\Local Extension Settings\dhdgffkkebhmkfjojejmpbldmpobfkfo\

And find file 000003.log or similar. This file stores whole history of changes of all userscripts. Just search for website name, that uses your script.

6
  • 1
    I have a very similar issue. However, 000003.log appears to be a binary file. How can its script history data be read in plain text?
    – MJH
    Nov 27 '16 at 4:38
  • 1
    @MJH I just used Windows build-in Notepad.
    – hlcs
    Nov 27 '16 at 6:39
  • Strange. When opened in Sublime Text 3 it appears to be binary data, but when opened in Notepad it appears to be text (rather difficult to read, though). Thanks.
    – MJH
    Nov 27 '16 at 6:50
  • This didn't work, the file is empty after the new installation :(
    – Jay
    Feb 2 '19 at 16:04
  • Agreed, this will also not open on my machine. But it does seem to be the correct file. I will work harder :D May 26 '19 at 21:51
2

You can use this python script to extract your scripts from the profile backup folder:

https://gist.github.com/derjanb/9f6c10168e63c3dc3cf0

2
  • Please read the question again carefully. Your answer does not answer the original question. OP is using Windows not Linux or OS X
    – DavidPostill
    Nov 28 '16 at 12:57
  • 1
    @DavidPostill And what is the problem with installing Python for Windows? Another option is to boot a Linux Live CD.
    – derjanb
    Nov 29 '16 at 19:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.