Search found 4 matches

by kneo
Mon Nov 18, 2013 12:32 pm
Forum: FlashGot General
Topic: Is it possible to invoke flashgot from another firefox addon
Replies: 5
Views: 10357

Re: Is it possible to invoke flashgot from another firefox a

For some reason, the '__proto__: Array.prototype' style doesn't work for me, but '[]' does work.
When I use '__proto__: Array.prototype', the external download tool can be launched, but nothing is downloaded.
by kneo
Mon Nov 18, 2013 8:52 am
Forum: FlashGot General
Topic: Is it possible to invoke flashgot from another firefox addon
Replies: 5
Views: 10357

Re: Is it possible to invoke flashgot from another firefox a

Many thanks! It's exactly what I wanted to know! There's no officially supported API, but something like this should work: let flashGotService = Cc["@maone.net/flashgot-service;1"].getService().wrappedJSObject let links = { __proto__: Array.prototype, // very important, or use let links=[]...
by kneo
Mon Nov 18, 2013 5:51 am
Forum: FlashGot General
Topic: Is it possible to invoke flashgot from another firefox addon
Replies: 5
Views: 10357

Re: Is it possible to invoke flashgot from another firefox a

I'm able to get flashgot-service successfully right now. I guess it can be used to start a download. Still investigating...

Code: Select all

{Cc, Ci} = require("chrome")
gFlashGotService = Cc["@maone.net/flashgot-service;1"].getService().wrappedJSObject
by kneo
Mon Nov 18, 2013 3:52 am
Forum: FlashGot General
Topic: Is it possible to invoke flashgot from another firefox addon
Replies: 5
Views: 10357

Is it possible to invoke flashgot from another firefox addon

Hi,

I'm writing a firefox addon, which could generate some addresses dynamically. So I'd like to invoke flashgot to download them from my addon. Is it possible?
BTW: I want it automatic, not generating a dynamic page and asking user to use flashgot manually.

Thanks,
Kneo