-
Notifications
You must be signed in to change notification settings - Fork 5
Description
I'd like to make an addon to communicate directly with an external editor to edit Tampermonkey scripts. I’ve noticed that Tampermonkey Editors exists, so I'd assume there's already some sort of API that Tampermonkey already has coded. I can find the API to find Tampermonkey but not its use. Regardless, I’d love to make use of it too (or, at least, having it documented) all I need is listing, fetching, and updating userscripts (and their data) from the external source.
What I Need
More exactly, I'd like to:
- List of all installed userscripts along with any attachments and stored data.
- Pull some data (be it code or stored data) from a userscript.
- Set a script’s content, its storage or its externals.
This is primarily for editing, so I don't need the ability to create here.
Why I’m Asking
I want to build a seamless integration for editing my scripts directly from external means. Right now, I’m using webdav but it doesn't work well-enough for the results, the responsiveness and the way I want to organize the files in the backup persistence I want. And webdav doesn't include the attached data, even.
If need be, tampermonkey can just have a confirmation (maybe even similar to the import or a new user.js) on whether to accept the addon requesting access.
Thank you in advance.