A WebDAV-like server to sync Tampermonkey scripts and edit them with an external editor.
WARNING: this is not a 100% WebDAV-compliant server. Many clients should, but don't necessarily have to work!
Make sure Node.js greater than v4.9 is installed.
execute TamperDAV.bat
$ ./tamperdav.sh
Notes:
- in order to allow Tampermonkey to use the full TamperDAV feature set, please make sure TamperDAV is running when Tampermonkey is started.
- you can easily find the right file to edit by running
node find_script_in_meta.js --name="My Script Name"
sudo mount -t davfs http://localhost:7000 /mnt
dav://localhost:7000/
# Install dependencies
$ npm install
# run
$ mkdir dav
$ node server.js --path=dav/
All options can be set via config.json and/or command line. username
and password
can be set via environment as well.
$ TD_USERNAME=derjanb TD_PASSWORD=secret node server.js --path=dav/ --port=6000
config.json
:
{
"path": "dav",
"no-auth-warning": false,
"username": "derjanb",
"password": "secret",
"port": "7000",
"host": "localhost",
"max-cursors": 512,
"open-in-editor": "sublime_text",
"meta-touch": true,
"debug": true,
}
path
a relative path from where the files should be servedno-auth-warning
don't show a warning if no username and password is setusername
username for authentication (basic auth)password
passwordport
TCP port to listen athost
network address to bind onmax-cursors
number of cached changesopen-in-editor
if "true" then if Windows "notepad" editor is used, elsexgd-open
; or the executable as string i.e. "gedit", "notepad", ...meta-touch
touch a sync entries's meta file automatically to make Tampermonkey start a sync on script changesdebug
print debug information