Need feedback about my FlashGot-like addon

General discussion about web technology.
pouriap19
Posts: 17
Joined: Wed Apr 29, 2020 6:21 pm

Re: Need feedback about my FlashGot-like addon

Post by pouriap19 »

therube wrote: Mon Jun 15, 2020 11:29 am DLG is unable to download from "firefox".
barbaz wrote: Tue Jun 16, 2020 3:32 pm So does it work if you set about:config > privacy.resistFingerprinting.block_mozAddonManager to true (you might need to create this boolean pref) and/or blank out about:config > extensions.webextensions.restrictedDomains ?
So I just checked Firefox Send and no it's not because of restricted domains. My bad for not properly looking into it at first.
It's actually what maxoku suggested. Because Send uses end-to-end encryption what is actually downloaded is an encrypted "blob" which then gets decrypted via JavaScript and then is served as a download. So it's not like a regular download that has a URL and an HTTP request. DLG detects downloads through interpreting requests.

I have looked into this issue briefly before because Mega also uses this format for downloading and it didn't seem possible because there's no request and no URL. The file is created inside JavaScript code and is lost the moment you click 'cancel' or 'ok'.
I'll look into it some more now that Firefox Send is also using this but I'm pretty sure it's impossible. It's actually "designed" to be impossible to intercept in order to make sure the end-to-end encryption is secure.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0
Lucas Rey
Posts: 3
Joined: Mon Jun 29, 2020 8:17 am

Re: Need feedback about my FlashGot-like addon

Post by Lucas Rey »

@pouriap19 Thank you for your great work, I'm searching a Flashgot replacement for IDM too (I'm currently using an old waterfox version who still supports flashgot).

Now I installed:
- Firefox Developer 78.0b9 (32-bit)
- download-grab-v0.11.0a.xpi
- Download.Grab.Native.Host.v0.11.0a.Setup.exe

But still get the IDM download window, I'm expecting https://imgur.com/a/sjCI0Vb as for flashgot. What's wrong? Am I missing some settings?

Thank you
Lucas
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0
pouriap19
Posts: 17
Joined: Wed Apr 29, 2020 6:21 pm

Re: Need feedback about my FlashGot-like addon

Post by pouriap19 »

Lucas Rey wrote: Mon Jun 29, 2020 8:27 am @pouriap19 Thank you for your great work, I'm searching a Flashgot replacement for IDM too (I'm currently using an old waterfox version who still supports flashgot).

Now I installed:
- Firefox Developer 78.0b9 (32-bit)
- download-grab-v0.11.0a.xpi
- Download.Grab.Native.Host.v0.11.0a.Setup.exe

But still get the IDM download window, I'm expecting https://imgur.com/a/sjCI0Vb as for flashgot. What's wrong? Am I missing some settings?

Thank you
Lucas
Do you have browser integration enabled in IDM?
Close all your browsers then open IDM -> options -> General and then uncheck all browsers from the browsers list and then also uncheck the "Use advanced browser integration" option. Then click OK.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0
User avatar
therube
Ambassador
Posts: 7922
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Need feedback about my FlashGot-like addon

Post by therube »

Default option (in the dropdown) to show only the video(s) attributable to the particular tab.
(With a "click" to display all.)

Show more information in the dropdown.
Size, at least, would be nice.
Maybe even the URL & or referrer.
(URL is visible on mouseover. Other information when you actually click an item, but less convenient.)

Ability to Copy the URL.
(Right-click would work nice for that. Heh ;-). Remember those days, when things were good.)

Ability to grab a NoScript blocked media item.
It seems that once NoScript blocks a media item, showing a placeholder, its' URL is known.
But DLG doesn't actually see anything, until the "block" is clicked, allowed, & the media actually starts to play.
The ability to Grab Link of the NoScript placeholder would be nice.


(I'll just note that first grab opens Net Transport [if not already opened] but does not grab. You then have to Grab a second time for it to register. For me [you've said otherwise], that behavior is different from FlashGot. FlashGot [Win7] always opened & grabbed.)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53.4
Lucas Rey
Posts: 3
Joined: Mon Jun 29, 2020 8:17 am

Re: Need feedback about my FlashGot-like addon

Post by Lucas Rey »

pouriap19 wrote: Mon Jun 29, 2020 10:38 am Do you have browser integration enabled in IDM?
Close all your browsers then open IDM -> options -> General and then uncheck all browsers from the browsers list and then also uncheck the "Use advanced browser integration" option. Then click OK.
Thank you, but now I got the classic firefox download window
Image

However, with the right button I can choose the "Grab Link" Menu and the download starts with IDM. I would like to have however the window where I can choose the downloader as per your screenshot.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0
pouriap19
Posts: 17
Joined: Wed Apr 29, 2020 6:21 pm

Re: Need feedback about my FlashGot-like addon

Post by pouriap19 »

Lucas Rey wrote: Mon Jun 29, 2020 2:26 pm Thank you, but now I got the classic firefox download window
Image

However, with the right button I can choose the "Grab Link" Menu and the download starts with IDM. I would like to have however the window where I can choose the downloader as per your screenshot.
Hmmm...
Have you checked Download Grab's options? "Override Firefox's download dialog" should be checked. Also make sure you haven't added .iso to the ignore list.
I'm using the same browser with the same addon version and it's working for me.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0
pouriap19
Posts: 17
Joined: Wed Apr 29, 2020 6:21 pm

Re: Need feedback about my FlashGot-like addon

Post by pouriap19 »

therube wrote: Mon Jun 29, 2020 1:00 pm Default option (in the dropdown) to show only the video(s) attributable to the particular tab.
(With a "click" to display all.)
This will be implemented in the future.
Show more information in the dropdown.
I don't want the list to get too cluttered but I might add a little more info to the list or the hover info.
Ability to Copy the URL.
Will keep that in mind. Keyboard/mouse shortcuts will be added in the future.
Ability to grab a NoScript blocked media item.
I haven't looked into this as I don't use NoScript but I added it to my to-do list to check in the future.
I'll just note that first grab opens Net Transport [if not already opened] but does not grab. You then have to Grab a second time for it to register. For me [you've said otherwise], that behavior is different from FlashGot. FlashGot [Win7] always opened & grabbed.
I specifically checked Net Transport's underlying functions that handle downloads and they don't seem to have changed so DLG should work as FlashGot did. BTW I was using the trial version and the first time I grabbed (both with FlashGot and DLG) the purchase window would open. In order to test it I downloaded a pirated full version of Net Transport and now the downloads are grabbed with the first try.
Have you tried FlashGot and DLG on the same system? If on the same system FlashGot works and DLG doesn't I'll take another look.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0
Lucas Rey
Posts: 3
Joined: Mon Jun 29, 2020 8:17 am

Re: Need feedback about my FlashGot-like addon

Post by Lucas Rey »

pouriap19 wrote: Mon Jun 29, 2020 5:48 pm Have you checked Download Grab's options? "Override Firefox's download dialog" should be checked. Also make sure you haven't added .iso to the ignore list.
I'm using the same browser with the same addon version and it's working for me.
Thank you, is working now!!!
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0
User avatar
therube
Ambassador
Posts: 7922
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Need feedback about my FlashGot-like addon

Post by therube »

Have you tried FlashGot and DLG on the same system? If on the same system FlashGot works and DLG doesn't I'll take another look.
Yes, Win7 x64 (& XP, for that matter).
SeaMonkey (for as long as I can remember) / FlashGot (for as long as I can remember).
FF Nightly & DLG.
(And I'm sure, over time, I must have also looked at FF [Legacy] & FlashGot, & certainly would have noted if it didn't work as expected.)
(Similarly, Pale Moon / FlashGot.)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 5.1; rv:52.0) Gecko/20100101 SeaMonkey/2.49.5
pouriap19
Posts: 17
Joined: Wed Apr 29, 2020 6:21 pm

Re: Need feedback about my FlashGot-like addon

Post by pouriap19 »

therube wrote: Mon Jun 29, 2020 8:30 pm Yes, Win7 x64 (& XP, for that matter).
SeaMonkey (for as long as I can remember) / FlashGot (for as long as I can remember).
FF Nightly & DLG.
(And I'm sure, over time, I must have also looked at FF [Legacy] & FlashGot, & certainly would have noted if it didn't work as expected.)
(Similarly, Pale Moon / FlashGot.)
Can you give me your Net Transport version too? Also is it x64 or x86?
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0
User avatar
therube
Ambassador
Posts: 7922
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Need feedback about my FlashGot-like addon

Post by therube »

x86, 2.96L.725 (the most "recent")

Win7 x64. SeaMonkey x86, x64.
(FF, oh if 52, thinking it would have been x86? Probably x86 with FF 56 too?)



[Oh what do you know. 52 is x64 & 56 too.
52 definitely works (after, xpinstall.signatures.required;false).
Don't feel like figuring out the "fix" for 56, & as I have no signed versions of FlashGot...
What a bunch of crap, signing!]
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 5.1; rv:52.0) Gecko/20100101 SeaMonkey/2.49.5
User avatar
therube
Ambassador
Posts: 7922
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Need feedback about my FlashGot-like addon

Post by therube »

(Don't know what this means, but maybe there is some relevance here?
Bug 1579911 Allow extensions to observe and modify requests created by downloads.download extension API)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 5.1; rv:52.0) Gecko/20100101 SeaMonkey/2.49.5
User avatar
therube
Ambassador
Posts: 7922
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Need feedback about my FlashGot-like addon

Post by therube »

Looks like the dropdown list displays 20 or so items (seemingly, max).
If you happen to open a lot of tabs & if media are detected on those tabs, quite possible that what you're looking for is no longer available from the dropdown.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53.5
User avatar
maxoku
Posts: 16
Joined: Tue Sep 17, 2019 6:12 pm
Location: Poland

Re: Need feedback about my FlashGot-like addon

Post by maxoku »

You can change the maximum number of items in the settings. Default is 20.
I also use option to ignore common web files, so mostly medias are appearing in the list. You can also manually add extensions that will be ignored.
You can also manually clear the list and then load the page you want to grab something from.
Hopefully there will be a filter adden soon that will show only files from current tab.
Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0
User avatar
therube
Ambassador
Posts: 7922
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Need feedback about my FlashGot-like addon

Post by therube »

Some pages use mp4 for "thumbs", or similar, so as you scroll down, they might get picked up.
Manual clear I was aware of.
Sometimes, a page refresh (or even a hard refresh) doesn't pick up on a clip again.
(I think that may have to do with a "ttl", timeout value, & until that period passes...)
I'll look at upping the max.

Otherwise, it's been working well :-).
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0
Post Reply