We have built a download manager desktop application for windows. Now we want to add a feature that intercepts download links and adds them to the application. We think we should write an addon for each browser starting from Firefox.
- To intercepts download links for a download manager, is writing addons the best choice?
- How can we do that?
Things we've tried so far:
- Using Downloads.jsm to observe new downloads, then cancel them => We don't want the user to interact with Firefox's download dialog
https://stackoverflow.com/a/24466197/2550529
- Adding a click event listener to each tab and looking for links => Download links are not distinguishable.
https://stackoverflow.com/a/10345358/2550529
After grabbing the link, it is just passed to our application using nsIProcess.
In one sentence: We want it to behave like IDM's new download dialog.