Skip to content

Add opt-in migration from nostr-article-capture userscript storage #7

Description

@bryanmatthewsimonson

If a user was running the nostr-article-capture userscript (v1.8.0 same schema), they've got publications / people / organizations / keypair registry / preferences stored in their user-script manager's GM_setValue area. The extension can't read that directly (different storage scope), but we can offer a frictionless way to export-from-userscript then import-into-extension.

Plan

  1. In the userscript, add an "Export all data for X-Ray" menu command that writes a single combined JSON blob to the clipboard (or downloads a file): { publications, people, organizations, keypair_registry, preferences }.
  2. In the options page, add an "Import from userscript" flow that accepts that blob and merges each section into chrome.storage.local (preserving existing extension data).

Notes

  • Keypair export already has a single-section path (Keypair Registry → Import JSON). This is the broader version for everything-at-once.
  • Warn clearly that the blob contains private keys; treat it the same as the existing keypair export.
  • Doesn't need to be symmetric — we only need userscript → extension, not the reverse.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Nice to havearea/optionsLives in src/options/enhancementNew feature or requestparityTracks userscript feature parity

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions