Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support import of VM and TM exports #2947

Closed
arantius opened this issue May 2, 2018 · 1 comment
Closed

Support import of VM and TM exports #2947

arantius opened this issue May 2, 2018 · 1 comment
Milestone

Comments

@arantius
Copy link
Collaborator

arantius commented May 2, 2018

Both Violentmonkey and Tampermonkey support backup to ZIP. They both contain .user.js files plus platform-specific settings and/or stored values.

We should support importing the scripts (plus downloading any other referenced files, since they're not included) from both formats.

@arantius arantius added this to the 4.4 milestone May 2, 2018
@arantius
Copy link
Collaborator Author

  1. Start nightly
  2. Install Violentmonkey
  3. Install a couple user scripts
  4. Uninstall Violentmonkey
  5. Install greasemonkey-2018.05.14.nightly.4bf45ef.xpi
  6. Import that .ZIP

Fail:

Security Error: Content at moz-extension://fad61490-d9a3-4ab2-be5d-6b8031489531/src/content/backup/import.html may not load or link to file:///fancybox/jquery.fancybox-thumbs.css.
uncaught exception: undefined
Error: Download(s) failed; see `.failedDownloads`.

We don't know the download URL for this script, and it specifies relative imports, which fail to resolve.

Repeat, but install scripts with no relative-URL remote dependencies: Works OK.

I think this is enough for now, but added #2952 for doing even better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant