KGet integration for Mozilla and Firefox

Various Stuff

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

0
Become a Fan
5.0

Description:
"KGet integration for Mozilla and Firefox" allows you to download your files using KGet from inside Mozilla and/or Firefox. It consists of a shell-script that detects if you're using Mozilla or Firefox and patches your installation. No recompiling is necessary.

It has been tested with Mozilla 1.7.2 and Firefox 0.9.3. Other versions of Mozilla should work but are untested. Firefox versions older than 0.9 won't probably work, but newer ones should.


---------------
HOW TO INSTALL
---------------

- Download the shell-script (7Kb)
- Open Konqueror and browse to the directory where you have downloaded it
- Right-click the file and select "Properties"
- In the opened window, click the "Permissions" tab and activate the "is runnable" checkbox, then click OK.
- Press F4 or click Tools - Open terminal
- Type:
./kget4mozilla-0.2.sh /directory/where/you/installed/mozilla

- If you don't have write permissions, the script will automatically prompt you to enter the root password.

- If you're using Mozilla, open it and click Edit - Preferences. Then select Navigator - Downloads. In the right panel, make sure you choose "Open the download manager". In Firefox there isn't a similar option so you will always use KGet and there's no way to disable it.


---------------
HOW TO USE
---------------

- When you right-click a link and select "Save link target as..." or shift+click it, KGet will open asking you to choose the place where you want to save the file.
- You may use Tools - Download Manager ("Downloads" in Firefox) to open KGet and/or focus on it.


---------------
TO DO
---------------

- When you click a link and the application chooser opens, you can't save the file with KGet yet. This seems hard to implement without breaking something, but I'll try to do it.
Last changelog:

0.2: Added support for Firefox.
0.1: First release


Ratings & Comments

15 Comments

elinawilliams

you can use KGETwith Mozilla or Firefox. You can also you plugger to handle specific MIME types with KGET. Visit https://www.browsertechnicalsupportnumbers.com/mozilla-firefox-support/

amar611

when I run the script. following is the output. I am running suse 10. Please help linux:~ # cp /home/amar/Desktop/kget4mozilla-0.2.sh /usr/lib/firefox/ linux:~ # cd /usr/lib/firefox/ linux:/usr/lib/firefox # ls . chrome firefox-bin kget4mozilla-0.2.sh libsmime3.so libxpcom.so mozilla-xremote-client searchplugins .. components firefox.sh libmozjs.so libsoftokn3.chk libxpcom_compat.so plugins updater add-plugins.sh defaults greprefs libnss3.so libsoftokn3.so libxpcom_core.so res updater.ini browserconfig.properties extensions icons libnssckbi.so libssl3.so libxpistub.so run-mozilla.sh xpicleanup linux:/usr/lib/firefox # ./kget4mozilla-0.2.sh . KGet integration for Mozilla and Firefox 0.2, by Victor Fernandez Mozillux project - http://www.polinux.upv.es/mozilla Restoring the backup of ./chrome/browser.jar (backup file retained) Extracting into /tmp/kget4mozilla-0.2 Patching content/browser/contentAreaUtils.js cat: /tmp/kget4mozilla-0.2/content/browser/contentAreaUtils.js: No such file or directory grep: /tmp/kget4mozilla-0.2/content/browser/contentAreaUtils.js: No such file or directory head: /tmp/kget4mozilla-0.2/content/browser/contentAreaUtils.js: invalid number of lines expr: non-numeric argument tail: /tmp/kget4mozilla-0.2/content/browser/contentAreaUtils.js: invalid number of lines Patching content/browser/browser.js Repackaging ./chrome/browser.jar zip I/O error: No such file or directory zip error: Could not create output file (./chrome/browser.jar) /usr/lib/firefox Deleting temporary files in /tmp/kget4mozilla-0.2 Done Don't forget to visit the Mozillux website. Enjoy!

hansschmucker

You can also you plugger ( http://fredrik.hubbe.net/plugger.html ) to handle specific MIME types with KGET... For example to have kget handle ZIP files, just add application/zip:zip:Zip Binary Package swallow(KGet) fill: kget "$url" to your pluggerrc file. However, there's one sideeffect... because kget usually runs all the time, plugger can't swallow the main window... it will instead swallow the KGet "Save as" dialog and display it as if it was the ZIP file. That'S fine with me, but I guess I should warn you

john007

... you can do the following, without patching firefox: - klick on a download link - choose "open with" - select "/path/to/kget" - tick "always open with this application"

isma

Well, I tried that method you suggest (open with... /path/to/kget) some time ago and the only result was that KGet tried to open the file AFTER Mozilla DownloadManager had downloaded it yet in its own way. To the author: Really thanx for this extension, I hated Mozilla dropping out my downloads after thousands of kbytes had yet crossed through my slow modem. This marks a new era in my internet download expierence. Greets

bisley

hmm, its already exists an extension for Mozilla/Firefox like this. downloadwith but last version its a little old and i dont think that will be compatible with firefox 0.9x... Ill try your script for my firefox, thx. One question, its compatible with firefox 1.0pr?

djworld

DownloadWith is similar, but it's not as transparent as this one. You have to right-click and select "DownloadWith - kget http://foo". With this patch you can use "Save link target as", like you would normally do, and I want to make it work with normal links too. I haven't tested it with Firefox 1.0 PR, but it should work. If it didn't work, tell me and I'll try to see how to make it work and also tell you how to restore your Firefox installation.

ra1n

What is really needed is a good IPC if mozilla supported DCOP this won't have been necessary, a strong standard IPC protocol is needed

djworld

What is IPC? I like the idea of making Mozilla/Firefox/Thunderbird (MFT) support dcop, but it would be hard to implement and I need help. It would probably require modifying the binary code and then you'd need to recompile MFT. I'll have to do it sooner or later; I think it's the best way to implement the KDE open/save dialogs. I'd also like to make MFT use the standard KDE dialog to choose the application you want to open a file with and perhaps read the KDE file associations (right now it uses the Gnome ones). The problem is right now I haven't received help from anyone (apart of bug reports). I need help to modify the "Makefiles" and "configures" to link Mozilla with the KDE libraries so we can call them from inside Mozilla. Also, I'm not very skilled in programming for KDE. I could learn because I already made a small program, but help would be MUCH appreciated. Porting Firefox to KDE/Qt would be very hard, but with help we could make Firefox work like if it were a native KDE application. That's the purpose of Mozillux, but I can't do it alone.

ra1n

IPC stands for InterProcess Communication, and DCOP it's an IPC implementation (gnome uses corba) I don't think to port mozilla to KDE/Qt, it's a waste of time, but I want to use it as default browser, to open an external link from thunderbird or kmail into firefox, something that in windows is possible, but not under any DE in linux

carlosd

kcontrol kdecomponents component chooser open http and https urls: in the following browser

Yaba

Would it also be possible to create an integration for Thunderbird? These stupid GTK file dialogs always annoy me, when I have to use them.

djworld

Yes, but take in mind this doesn't replace the GTK open/save dialogs. The KDE open/save dialog you see in the screenshot belongs to KGet, not to Mozilla. I want to replace them but right now I haven't found a good way to do it, although I'm trying. You may take a look at this: http://www.kde-look.org/content/show.php?content=13967 It doesn't work very well, but perhaps you find it useful. The main problem is Mozilla/Firefox/Thunderbird (whatever you use) freeze while the open/save dialog is opened. Anyway, I'll continue trying to improve it.

l1nx

cool, only i'll wait for you to update the script so it can be used with firefox to :)...ma comp. is a bit slow and firefox forks much faster than mozilla! [rip]

xvicx

this is realy cool! now i can have the power of kget in mozilla... keep up this great script. nice work!

Pling
0 Affiliates
Details
license
version 0.2
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 1

More Various Stuff from djworld:

KDE open/save dialogs for Mozilla
djworld
last update date: 21 years ago

Score 5.0

KDE panel background manager
djworld
last update date: 22 years ago

Score 5.0

Other Various Stuff:

meteo-qt
dglent
last update date: 3 years ago

Score 7.2

msfonts
aviram
last update date: 23 years ago

Score 5.0

new keramik? drop shadows? now?
sheean
last update date: 23 years ago

Score 5.0

KDE 3.0.4 Up on German KDE FTP
DecayingOmega
last update date: 22 years ago

Score 5.0

kbfx for debian sid
rufuseddy
last update date: 20 years ago

Score 5.0

Linuxfans Website
connermo
last update date: 22 years ago

Score 5.0