gyng / save-in

WebExtension for saving media, links, or selections into user-defined directories
MIT License
201 stars 25 forks source link

Grab downloads directly #70

Open draiko16 opened 6 years ago

draiko16 commented 6 years ago

Hi, I would like to ask, if possible, to make the extension to grab the downloads before Firefox does it, because the real utility I'm looking for is to maintain all my downloads in different folders and such, but the direct downloads (like those the pages make after a few seconds) are getting grab by the downloader and not this extension. If there is a way right now in the configuration, I apologize for not understanding them correctly, thanks

gyng commented 6 years ago

Not possible in Firefox until Firefox implements onDeterminingFilename, or provides an alternative API for it. Keep an eye out https://bugzilla.mozilla.org/show_bug.cgi?id=1245652. I don't think the Chrome version is set to intercept all downloads right now.

marcelpaulo commented 6 years ago

I'm trying to migrate from Google Chrome to Firefox, and so looking for equivalent extensions. I used RegExp Download Organizer on Chrome that intercepts and routes downloads, including downloads not started from a <a href> link, so I take it it's feasible on Chrome.

gyng commented 6 years ago

@marcelpaulo For downloads started not by a link, Firefox is blocked by the missing chrome.downloads.onDeterminingFilename API. The related bug for that is https://bugzilla.mozilla.org/show_bug.cgi?id=1245652.

I've not tested much on Chrome so I think it works there.

marcelpaulo commented 6 years ago

Thanks a lot for the explanation, @gyng ! From the discussions on that issue report, it doesn't look like it's going to be implemented. What a shame that Firefox doesn't implement this: automatically routing downloads (started by a link or otherwise) seems such a basic and necessary task that it surprises me it can't be done.