Achim's Mozilla Extensions » 10 Years «
 
 
 About
 Introduction 
 Contributors 
 Press 
 Links 
 ToDo 
 Sitemap 

 Thunderbird
 Signature Switch 
     » Screenshots 
     » Download 
     » FAQ 
 NestedQuote Remover 
     » Screenshots 
     » Download 
 NewMail Execute 
     » Screenshots 
     » Download 

 Firefox
 Save Link in Folder 
     » Screenshots 
     » Download 
     » FAQ 
 Save Image in Folder 
     » Screenshots 
     » Download 
     » FAQ 

 Contact
 eMail 


Developed withThe best Java IDE
 
Linux Mint
 
 
Save Link in Folder   Save Link in Folder - Hidden Prefs

Save Link in Folder offers settings which are not reachable via GUI but Firefox's built-in "config-editor" (about:config).

The following preferences can be set:

Name Default Effect
extensions.savelinkinfolder.nofilereference-filename unknown When you try to save a link that has no direct reference to a file (e.g. a link to a php-download-script with several arguments) then you'll automatically get prompted with a "Save As..."-dialog.
There you can enter a filename for the file to be saved. The default-filename is "unknown.ext".
You can even disable the "Save As..."-dialog by setting nofilereference-showdialog to false. That way your usual folder-settings will take effect.
So keep in mind that if you have chosen to overwrite any existing files without prompting (for example)... you won't get prompted and the file will be overwritten... even if there might have been problems retrieving the actual file!
extensions.savelinkinfolder.nofilereference-fileextension ext
extensions.savelinkinfolder.nofilereference-showdialog true
extensions.savelinkinfolder.randomstring-length 8 determines the length of the random-variable

Addtion to the nofilereference-settings:

For the even more advanced users ;-) ...

Now here comes a tricky (but very comfortable) way to get a characteristic filename for those parameterised download sources.

Assuming the source of the file reads like this:
     http://www.example.com/products/download.html?product=anyapp&os=linux&lang=en

You might want to have the product and lang to be part of your filename.

Just enter something like the following into your nofilereference-filename-preference (mentioned above):
     file_prod=%product=%-lang=%lang=%

The resulting filename (including your preferred fileextension) will be:
     file_prod=anyapp-lang=en.exe

Well... you still have to know the parameters in advance and decide which ones to use.
So this isn't a very generic way dealing with the problem since it might not fit for every website.

To keep it flexible and "universally usable" I also introduced a variable called ALL_PARAMETERS to just insert all parameters.

     file_%ALL_PARAMETERS%

... will bring you ...

     file_product=anyapp&os=linux&lang=en.exe

Voila! Hope anybody out there finds this useful. ;-)