Description
What is the problem?
IIS doesn't allow downloading files without extensions. It requires additional configuration to allow this. (Windows doesn't really do extensionless files. There are no file associations for them and they're difficult to work with.)
Violentmonkey's getItemFilename returns filenames without extensions. Since all the files are JSON, it should append .json
to all the names. This change also enables syntax highlighting in supported file editors.
How to reproduce it?
- Sync Violentmonkey over WebDAV against an IIS server
What is the expected result?
Sync should work.
What is the actual result?
Sync error!/IIS 404.3 error. Violentmonkey thinks its a new install every time (even when there's data) because IIS admittedly stupidly returns 404 even when the file exists on the share.
Environment
- Violentmonkey version: v2.12.12
Migration strategy
If Violentmonkey/Violentmonkey.json
exists then migration has happen. If Violentmonkey/Violentmonkey
exists then iterate through all files and move them to .json
variants; lastly move the file itself. If neither exists then it's a new install and default to the new .json
variant for file names.