Converting an add-on that runs executables to WebExtensions

I’d love to turn this add-on into a WebExtensions one: https://addons.mozilla.org/en-US/firefox/addon/yt2p/?src=userprofile
Unfortunately, the ability to just use nsIFiles will be gone. Native Messaging is not an option. What would you do in my position?

There are already addons that send links to IDM or similar using Native Messaging but that depends on the target application.

There are also other addons that have Open with XYZ browser using Native Messaging.

You can check them out to get some ideas.

Rasmus, although WebExtensions dont have direct access to the file system as of yet (and support for that is being considered), they do have access to downloadAPI. With that API, you can download files (such as a youtube video if you have the URL) to the user’s system. Unfortunately, you cannot open it in a native player, however.

1 Like