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?
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.
You can use this python script to extract your scripts from the profile backup folder: