zaidka / cliget

A Firefox addon to download login-protected files from the command line
https://addons.mozilla.org/en-US/firefox/addon/cliget/
Mozilla Public License 2.0
357 stars 57 forks source link

Added a part to download current page #58

Open pascalheraud opened 6 years ago

pascalheraud commented 6 years ago

Here is a Proposition to solver issue #57 or even #51.

The code is definitive, I just wanted to know if it's possible. I stored page requests in a separated list from downloads but we could maybe merge the two lists in a single one. I made basic design for separating current page from downloads. Maybe we could add title to let the user know what's there. I tested in on FF57 and it's working fine.

Let me know if you would like to include such feature and how I can make it done.

zaidka commented 6 years ago

Apologies for taking so long to look at this.

Have you considered using the context menu? I think that would be a better place for it. Also, the URL is not enough to identify the original request for a given page. Perhaps check the tab ID too?