darthkrallt / AO3rdr

Firefox extension enhanced rating system for Archive of our own
GNU Lesser General Public License v2.1
19 stars 5 forks source link

[Firefox] Use Embedded Extension to migrate data for Webextension #49

Open darthkrallt opened 8 years ago

darthkrallt commented 8 years ago

Try out the solution here: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Embedded_WebExtensions to see if it works for data migration for the webextensions upgrade.

This feature not available until FF version 51, cannot do until that's out.

darthkrallt commented 7 years ago

AAARGHHHHH THIS IS URGENT NOW. Impending doom.

Steps for working on it:

  1. Download Firefox DEVELOPER version 56.0 from the archives

  2. Set up aliases:

    alias jpm="~/AO3rdr/node_modules/jpm/bin/jpm"
    alias firefox="~/lib/firefox/firefox"
  3. Enable install of unsigned addons (set xpinstall.signatures.required to False in about:config)

  4. Install old version of add-on (ao3rdr-jpm.xpi) and add some bookmarks

  5. Remove old version

  6. Install new "wip" version built with "build-firefox-jpm.sh"

Note that the "webextension" folder will have the "new stuff" and the rest of the add-on is still legacy.