X-Mozilla-Status(2) explained :: Mozilla-Features :: Mozilla vs. Antivirus :: Mozilla-Links :: Mozilla-Applications
This page is named “Mozilla Applications” where “Application” means any application that runs and relies on the Mozilla.org framework. Not that I'm megalomaniac, but I don't know what things I'll write in the future and want to prevend later renaming of this page. For now it's only about extensions (or even more precisely ridiculous two extensions) using the extension mechanism of Mozilla Suite, Firefox and Thunderbird.
Due to a new security function (see Bug 378216) extensions which do not provide secure updates will be disabled in Mozilla applications from trunk since 2007-09-04 (i. e. also in Firefox 3 as well as forthcomming Thunderbird 3 and Seamonkey 2.
Since September 17th 2007 a tool is available that enables extension authors to secure the whole update process using signatures. By that “secure updates” are possible without SSL-secured websites. However, in order to be able to use these new mechanisms it’s necessary to once update to the newest version of my extensions by hand (i. e. to deinstall and install). I’m sorry for this inconvenience.
Should you use a version of FF, TB or SM under which extensions with “unsecure updates” don’t work anymore but you want (or have to) continue to use this “unsecure version“, it’s necessary to set the pref "extensions.checkUpdateSecurity" to "false"—this pref needs to be created!
GetFileSize
GetFileSize is an extension for Mozilla and Firefox to display file size and more usefull infos about files behind any link. And it's something more, viz stolen—ok, at least the idea. UnH Solutions offers with “Get File Size” an external program that does what my GetFileSize also does.
So why am I doing it again then? There are two reasons:
1. It's a nice exercise.
2. The original is indeed freeware, but only available binary, only for Windows and it only works with IE and Opera.
As for INFOCon-Status, the basis for this extension is provided by the function XMLHttpRequest(), only is the code and the UI here somewhat more complex.
The only thing GetFileSize does in the net is sending a HEAD request and analyzing the received infos. A example request can look like this:
HEAD /files/hhgttg4pdb.zip HTTP/1.1 Host: www.eyrich-net.org User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.8a5) Gecko/20041124 Accept-Language: de,en;q=0.5 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive
The parameters Keep-Alive, Accept-Charset as well as the HTTP version used depend on the global browser preferences. Through the usage of HEAD instead of GET only the header data is requested, not the file itself (at least if the server complies the HTTP standards.).
Installation & Usage
The installation should be simple. You can either download or install the extension from here: GetFileSize-0.2.3.xpi (right click and “Save Link Target As…” to download).
Suite users will get it installed in the current profile. For Firefox the extension manager is used—that means a clean way to install/uninstall and at least currently also installation in the profile.
The extension is delivered with strings in english and german. Should you be able to provide translations for additional languages, I'd be pleased if you could drop me a mail.
Using the extension is also simple, but since it's only version 0.1, there surely is room for enhancements. I'll also explain the preferences. Upon a right click on a link the new entry “GetFileSize” is added to the context menu. A click on it sends the request about that link to the server and brings up the dialogue on the right after the response.
It contains infos about the whole URL, which can also be changed. With the button aside of it, I hope it will be possible to directly start downloading the file in future versions.
The informations displayed cover the file name, the size—converted to KiB and MiB—, MIME file type, the time of last modification and the estimated time needed for download. Last info is only displayed if activated in the options.
Options
The preferences contain change resp. activation of output of the last modification as well as estimated time for download.
Adjust Last Modified: The HTTP header “Last-Modified” normally looks like this: “Sat, 01 Jan 2005 11:03:22 GMT”. So firstly it's english (while this is only noticeable for weekday and somtimes the month) and secondly it's in the timezone GMT (i.e. UTC, see Wikipedia: Coordinated Universal Time), which more or less differs from the users timezone.
This option now offers the possibility to adjust the time supplied by the server by a fix amount of hours when displaying it. In fact the extension also could adjust it to your machine's timezone, but the free amount is more flexible. In the dialogue the adjustment then is displayed as for example “GMT-0800” (for Los Angeles).
download time estimation: Some users prefer to be provided with the estimated time needed for a download. Big download sites list a few periods for users with a 14,400bps modem up to T1 cable for this reason. With the speed you provide here, GetFileSize can also show something like this. So if one can't imagine how long the transmission of the 2.35 MiB file will take, enters the “81920” bytes per second the own 1000kbps DSL connection gives you on the average, and gets “30.08 seconds” in the dialogue.
You can enter a pure number, but also with the suffix “k” resp. “m”. GetFileSize interprets that as bytes/s, resp. KiB/s and MiB/s. The output is always in bytes/s.
Note that the result is pure calculational, so depending on the real connection it can considerable diverge. And even if the value entered complies with the transfer rate of your connection, a slow server can make the whole nice computation useless.
The options chosen are saved within the own branch „getfilesize“ in the prefs “doLmodAdj”, “lmodOffset”, “doDlSpeed” and “dlSpeed”.
History
Version 0.2
- Since Firefox 1.5 Beta 1 (aka Firefox 1.4) gContextMenu.linkURL() doesn't exist anymore—it's now gContextMenu.linkURL. Earlier versions and the Suite (SeaMonkey) still need the old form. GFS 0.2 contains a switch at this point which regulates this.
Version 0.2.1
- GetFileSize can now also be used with SeaMonkey 2 which uses the same extension mechanisms like Firefox.
Version 0.2.2
- This version supports the new mechanisms to secure the whole update process through the usage of signatures.
Version 0.2.3
- Up to now GFS decoded coded extra chars (e.g. umlauts like %fc for ü) in a URL. But on sending the request to the server the browser again encoded those according to the HTTP specification—though depending on the browser prefs in a different encoding that before (e. g. %c3%bc in UTF-8). In such cases the server couldn't find the file and returned a 404. Now nothing gets decoded anymore and everything should work.
INFOCon-Status
INFOCon-Status is an extension that displays the Internet Storm Center's INFOCon status in the browsers status bar.
Doing this was inspired by todays visit of the ISC. Though they've done a good job in providing a number of possibilities to stay up to date on the INFOcon status, I missed one simple and OS independent one. Knowing the tinderbox status extension I felt like I must adapt this for the ISC.
Installation & Usage
Both should be very simple but since it's version 0.1.5 there surely is room for enhancements. You can either download or install it from here: infoconstatus-0.1.5.xpi (right click and “Save Link Target As…” to download).
Suite users will get it installed in the current profile. For Firefox the extension manager is used—that means a clean way to install/uninstall and at least currently also installation in the profile.
Usage should be clear. A new box is added to the status bar that shows “ISC” and one of four colors in the background. For what the colors mean refer the page about the INFOCon-Status. A click on the box opens the ISC website in the current window (and tab).
History
Wow, I really got it managed putting a bug into version 0.1. One shouldn't rename the functions in the nick of time …
Version 0.1.1
- Because I forgot one function while renaming, the status wasn't refreshed after the initial retrieve. I fixed that in 0.1.1.
- I changed the interval from five to ten minutes. In reality it will be even longer since the server sends an Expires-Header in the answer with a date 15 minutes in the future. So Mozilla asks every 15 minutes minimal.
- On installation Firefox is supplied with an update URL. That way Firefox will stay informed on current version informations.
Version 0.1.2
- Yellow for status yellow wasn't really a yellow.
Version 0.1.3
- The ISC field in the status bar in Seamonkey is now displayed right instead left of the security icon.
Version 0.1.4
- INFOCon-Status can now also be used with SeaMonkey 2 which uses the same extension mechanisms like Firefox.
Version 0.1.5
- This version supports the new mechanisms to secure the whole update process through the usage of signatures.
toggleReplied
This Extension adds the two new entries “As Replied” and “As Forwarded” to the mark submenus. This allows to conveniently set or remove these states. Mark submenus can be found in three places: in the right click context menu in the thread pane, in the right click context menu in the message pane and in the Message menu.
Installation & Usage
You can either download or install it from here: ToggleReplied-0.1.1.xpi (right click and “Save Link Target As…” to download).
For simplicity only the install mechanism of SeaMonkey version 2 (more precisely 2.0a1pre) and upwards is supported. Since this version also SeaMonkey contains an Add-on manager and supports the same mechanism as Firefox and Thunderbird. Thunderbird is supported from 1.5 upwards.

Usage should be also clear. The two new entries work exactly like you're used from the read state. If a message is already marked as read you see a check before the menu entry and clicking the entry results in removing the state. Otherwise no check is shown and clicking the entry results in setting the state. In this mechanism interpretation of the current and therefore the new state depends on the topmost selected message if there are more than one selected. This might not be to everyones liking, but since it's implemented like this for the read state by the Mozilla guys, I kept it that way in order to not confuse someone.
History
Version 0.1.1
- This version supports the new mechanisms to secure the whole update process through the usage of signatures.