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 four extensions) using the extension mechanism of SeaMonkey, Firefox and Thunderbird.
Mozillas—so far quite controversial discussed—decision of rapid release train of only six weeks also the extension developers work has become a bit more difficult. Or it became a bit mor hectic respectively if one wants to keep at it. Mozilla did some work to easen an authors live again (especially for extension being hosted on AMO).
But I still hope you to excuse it if I forget bumping compatibility of the extensions here on my server though I strive not to do it.
Please note that purely bumping compatibility for the browser doesn’t mean issuing a new version and thus no activity on this page or change of the .xpi file. In this case signalling compatibility to the application happens via a control file on my server.
GetFileSize :: INFOCon-Status :: toggleReplied :: DlmgrButtons :: FxIF
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.4.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.
Version 0.2.4
- Only version bump for compatibility with Firefox 3.5.*.
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).
The status will be re-checked every 10 minutes. The traffic produced is ca. 800 bytes and thus should carry no weight.
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.
Version 0.1.6
- Only version bump for compatibility with Firefox 3.5.*.
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.2.xpi (for TB < 3.0b2pre and SM < 2.0a3pre, see update note) resp. ToggleReplied-0.3.3.xpi (right click and “Save Link Target As…” to download).
Alternatively it’s available on addons.mozilla.org.
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.
Version 0.2
- Thanks to code contribution by Bob Triffles, ToggleReplied is now able to set both flags for mails on IMAP servers too.
- Also please notice that due to a change in the internal name the old version doesn’t get uninstalled on upgrade. I’d say this is a bug in Mozilla code (Bug 404968 ), but anyway you’ve to uninstall 0.1 or 0.1.1 manually after upgrade—though update does work automatically.
Version 0.2.1
- Just a small fix as follow up to the extension id renaming in version 0.2. Thanks Godai71 for noting that.
Version 0.3
- Actually not an update as big as the version jump suggests. But a change in the internal element naming in TB 3.0b2pre and SM 2.0a3pre made an adjustment in this extension necessary. To keep this change simple I decided to break compatibility zu prior applications (i.e. foremost Thunderbird 1.5 and 2.0). To make this more visible this version is not just named 0.2.1.
Version 0.3.1
- Again internal changes by the Thunderbird developers made a new version necessary. This time I was able to keep compatibility with prior versions and SeaMonkey by making a runtime check.
Version 0.3.2
- Just a small fix as follow up to the extension id renaming in version 0.2. Thanks Godai71 for noting that.
Version 0.3.3
- Made extension compatible with Postbox 2.0 and above.
DlmgrButtons

My so far most simple extension but one which fixes a—according to bug 497382 not only from my point of view—stupid alteration in SeaMonkey 2. In SeaMonkey 2 the user interface of the download managers was overhauled. One of the changes made is the removal of the button bar from which one easily and fast could open/execute an entry or open the containing folder of an entry. In the new download manager this is only possible via the context menu.

So my extension just retrofitts these two buttons. Regarding the design I comply with the new UI and use the same look like the Clear List button. Also the texts used for the buttons are taken from the ones of the context menus, this way the extension is always localised without implicit localisation, though they might be a bit long for button texts.
You can either download or install it from here: DlmgrButtons-0.1.xpi (right click and “Save Link Target As…” to download).
FxIF
This one’s living on its own page now.