Get File Size Extension

Talk about add-ons and extension development.
sbc
Posts: 147
Joined: February 18th, 2004, 12:47 pm

Get File Size Extension

Post by sbc »

Is there an extension for Firefox/Mozilla that allows you to right-click a link and get the linked objects file size - as well as other properties?

i.e. something like this addon to IE/Opera: http://www.unhsolutions.net/GFS/index.shtml

Get File Size is available for download:
For Firefox 1.0, download from http://www.extensionsmirror.nl/index.php?showtopic=328
For Deepark/Firefox 1.5, it is known as Extended Link Properties and is available at https://addons.mozilla.org/extensions/m ... fox&id=798
Last edited by sbc on September 29th, 2005, 1:42 am, edited 2 times in total.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
Torisugari
Posts: 1634
Joined: November 4th, 2002, 8:34 pm
Location: Kyoto, Nippon (GMT +9)
Contact:

Post by Torisugari »

Here you are.
http://cgi29.plala.or.jp/~mozzarel/addo ... lesize.xpi

This is a kind of link checker. After installation, right click a link and select "properties".
Torisugari
Posts: 1634
Joined: November 4th, 2002, 8:34 pm
Location: Kyoto, Nippon (GMT +9)
Contact:

Post by Torisugari »

Oops, screenshot.
Image
jedbro
Posts: 1899
Joined: November 10th, 2002, 12:35 pm
Location: Mexico / Boulder Co.
Contact:

Post by jedbro »

Excelent extension :)
User avatar
andyed
Posts: 78
Joined: November 5th, 2002, 6:31 am
Location: Clemson, SC
Contact:

Better on hover?

Post by andyed »

Would it be even better if it did it onHover of a link? And presented the results in a inpage popup?
User avatar
BenBasson
Moderator
Posts: 13671
Joined: February 13th, 2004, 5:49 am
Location: London, UK
Contact:

Post by BenBasson »

Status bar would be better than a popup, it's also more logical, as the address already shows there.
i.e. "http://www.domain.com/file.zip (350.23kb)".
Great extension idea btw :) I like it.
sbc
Posts: 147
Joined: February 18th, 2004, 12:47 pm

Post by sbc »

Popup may be a bit irritating - but perhaps it could be configured to do so (through about:config or UI, default off)
I'm sure it can be improved as well - perhaps someone else has some suggestions?

Thanks for doing the extension.

edit: improvements - last modified date, file type, response headers (like livehttpheaders)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
User avatar
Stefan
Posts: 2051
Joined: November 5th, 2002, 2:46 am

Post by Stefan »

Cusser wrote:Status bar would be better than a popup, it's also more logical, as the address already shows there.
i.e. "http://www.domain.com/file.zip (350.23kb)".


That would definitly be a neat solution :)
Torisugari
Posts: 1634
Joined: November 4th, 2002, 8:34 pm
Location: Kyoto, Nippon (GMT +9)
Contact:

Post by Torisugari »

Thank you for feedbacks.
New version.
Image
You can hide the header part at your preference.


>Link hover
Well, I think status bar is better than popup, too. Though this can be a little bloat...
sbc
Posts: 147
Joined: February 18th, 2004, 12:47 pm

Post by sbc »

Torisugari wrote:Thank you for feedbacks.
New version.
You can hide the header part at your preference.


>Link hover
Well, I think status bar is better than popup, too. Though this can be a little bloat...

Thanks for that, very useful and a very prompt response (which you probably wouldn't get from IE extension developers). Can't get file sizes for some links though - perhaps due to Pragma: no-cache in the header and/or the response not containing Content-Length. Sometimes last modified isn't returned either. Those seem to be webserver issues rather than browser issues.

I wonder what the HTTP headers text box would look like with a white background and a border - probably look out of place?

As for it displaying the size/date in the status bar, that would probably cause problems (hits to the site everytime you went over a link) - it would look good though.

That's the benefit of Firefox extensions - no admin rights needed to install, or ActiveX security considerations and reboot not required.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
User avatar
Stefan
Posts: 2051
Joined: November 5th, 2002, 2:46 am

Post by Stefan »

Torisugari wrote:Thank you for feedbacks.
New version.


BTW, what about changing KB to the correct KiB ?
sboulema
Posts: 6615
Joined: May 20th, 2003, 12:34 am
Location: Amstelveen, The Netherlands

Post by sboulema »

I don't think your extension is listed on extensionroom. If you'd like that, please fill out below and send it to database@mozdev.org

* Extension name (e.g. "My Extension")
* Version number (e.g. 0.4)
* Release date (e.g. 2003-03-05)
* Author name (e.g. John Doe)
* E-mail address (e.g. john.doe@domain.com)
* URL to extension homepage (e.g. http://domain.com/)
* URL to .xpi file (e.g. http://domain.com/myextension.xpi)
* Size of .xpi file (in KB, e.g. 256)
* A short description
* A good description (e.g. "This extension adds a toolbar button, allowing you to...")
sbc
Posts: 147
Joined: February 18th, 2004, 12:47 pm

Post by sbc »

Stefan wrote:
Torisugari wrote:Thank you for feedbacks.
New version.


BTW, what about changing KB to the correct KiB ?

Although KiB is the proper thing to use, I don't think many people know what it means. Nothing in Firefox reports size like that (right click an image and select properties - the file size is reported as kB) - so its probably best to employ the same standard as Firefox.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
User avatar
Stefan
Posts: 2051
Joined: November 5th, 2002, 2:46 am

Post by Stefan »

sbc wrote:
Stefan wrote:
Torisugari wrote:Thank you for feedbacks.
New version.


BTW, what about changing KB to the correct KiB ?

Although KiB is the proper thing to use, I don't think many people know what it means. Nothing in Firefox reports size like that (right click an image and select properties - the file size is reported as kB) - so its probably best to employ the same standard as Firefox.


Why?
Installling such an extension implies a techsavy user that both uses FF and know how to get extensions. Additionally the size is also there in total bytes, in case someone would be highly perplexed by the inclusion of an i between K & B.

Somewhere you have to start implementing the "new" standards, so people start getting accustomed to it, or there will never be a change.
User avatar
BenBasson
Moderator
Posts: 13671
Joined: February 13th, 2004, 5:49 am
Location: London, UK
Contact:

Post by BenBasson »

Surely it should be the same, if only for the sake of consistency. What is KiB anyway, and is it really that important?
Post Reply