Comments (6)
I'm bad at reading too. I thought you wanted to have a direct link between local files and scripts the way it's imitated in Tampermonkey via @require file://
We can certainly add a new method to our sync, which you will trigger manually or on schedule.
from violentmonkey.
Extensions can't access local files in Firefox directly. In Chrome it requires either granting the extension access to the entire file system, which is unsafe, or using the new API. Both methods don't have an API to watch for changes, so we would have to poll the directory regularly, which is ineffective.
The only sane current workaround is nativeMessaging
API and an external app that uses the system's built-in API to watch file changes, which is a complication we didn't want to add for such edge cases.
from violentmonkey.
AFAIK, you can use a local WebDAV server for this task.
from violentmonkey.
Yes, that would work, but running a WebDAV server comes with extra overhead. With the File System API, browsers can read and write to the local filesystem without needing an intermediary (like a local WebDAV server).
from violentmonkey.
We won't use the native File System API, see what I wrote in my comment:
Both methods don't have an API to watch for changes, so we would have to poll the directory regularly, which is ineffective.
from violentmonkey.
We won't use the native File System API, see what I wrote in my comment:
My bad, I opened the GitHub notification and it obscured your first comment.
from violentmonkey.
Related Issues (20)
- [BUG] Can't create a new userscript HOT 1
- [BUG] GM_download does not ignore CORS in iframe [NSFW]
- [BUG] Impossible to access to ViolentMonkey settings from ViolentMonkey current webpage script list HOT 3
- [BUG] MediaSession API doesn't seem to work HOT 9
- Release 2.19.0 for Edge HOT 1
- [Feature] User profiles HOT 3
- [Feature] Setting to allow XHR responses to set cookies HOT 16
- [BUG] Violentmonkey refuse to execute my script on google on opera browser HOT 15
- [BUG] v2.19.1 BETA reported an error and could not run the script.
- [BUG] 2.19.2 works fine in FF, refuses to install on Edge Chromium Canary 128.0.2672.0 HOT 2
- Publishing to AMO failed
- [BUG] Sudden "Syntax Error" in Userscript HOT 1
- [BUG] GM_openInTab with option "insert" does not open in tab next to script tab HOT 5
- [Feature] Sort by last used HOT 2
- [Feature] make one userscript having both page part and isolated content part HOT 8
- How can I get the craft helper in infinite on iOS HOT 1
- [BUG] Uncaught Promise Error HOT 2
- [BUG] console.log wont print anything for @grant non-nones. HOT 3
- [Feature] Put old versions of scripts when updating into recycle bin
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from violentmonkey.