Firefox 3 Download Day Mega Widget

Update: Oh, and rumor has it that this widget will switch to reporting on downloads, rather than pledges, once the main event has begun.

Update 2: It didn’t quite go like clockwork, but this widget is now showing estimated downloads by countries, rather than pledges.

Thanks to the completion of bug 435967, I can offer this totally unofficial hack of a mega widget (better late than never):

If you’d like, you can include this on your own site with a Copy-and-Paste of the following:

This is a total 2-hour cut, paste, reformat, and slight rejigger of Kent Brewster’s work on Content Syndication with Case-Hardened JavaScript. Hopefully it works, because I’m releasing early before I’ve had a chance to check it out on anything besides the browsers in my lap.

44 Comments

  1. Posted June 16, 2008 at 2:39 pm | Permalink

    nice. are you getting any design help on that? it’s looking a bit plain.

    commas and right alignment on the numbers at the very least would help a lot. and a total # (ooh, or a thermometer) would be neat.

  2. Posted June 16, 2008 at 3:34 pm | Permalink

    I pasted your code into a post on my blog, it doesn’t line up quite as nicely as yours. (isn’t near as wide either, even though I have plenty of room)

  3. Posted June 16, 2008 at 3:39 pm | Permalink

    @leonard: Nope, no design help - this was a 2 hour hack over a few days, including the server-side patch to get JSON out of the site. In fact, throwing in the Download Day logo was a last minute afterthought just before I posted this entry at lunch. Patches welcome :)

    @nicki: Hmm, it does look quite a bit smaller on your site. I might poke at the CSS a bit on my server to make it look nicer, since the styling I’ve done is very minimal.

  4. Posted June 16, 2008 at 4:03 pm | Permalink

    I’ve tweaked the CSS for this thing a bit to make it more uniform across blogs, though not completely so.

    Additionally, I’ve added some config parameters if anyone would like to play with restyling it:

      <script type="text/javascript" src="http://decafbad.com/2008/download-day-top-ten.js">
          {
              "id":"my-widget",
              "css":"http://localhost/~lorchard/download-day-top-ten.css"
          }
      </script>
    

    These will let you set the HTML ID for the widget, and the CSS file that gets dynamically loaded, respectively. One of the things I’m trying to do with this thing is hack a little closer toward having a tiny “widget framework” based on Kent’s work.

    But, I’m a cruddy designer, so that part probably won’t improve :)

  5. Posted June 16, 2008 at 4:18 pm | Permalink

    Looks fantabulous, thank you! :)

  6. Posted June 17, 2008 at 3:24 am | Permalink

    Is it me, or all pledges are 10x of the real (I mean, there is “0″ at the end of each country)

  7. Posted June 17, 2008 at 6:16 am | Permalink

    @willyaranda: Nope, it’s not you, it’s a bug. Ugh. Thanks for catching it - it should be fixed now. Man, I wish it were all 10x :)

  8. Posted June 17, 2008 at 6:59 am | Permalink

    Thanks to you and your widget!

  9. Posted June 17, 2008 at 8:00 am | Permalink

    Hey, nicely done!

    For what it’s worth, the presentation layer may be created by generating the stylesheet on the fly, avoiding the extra HTTP call. I need to update Case-Hardened JavaScript to show how; for now, curious readers may visit my cleverly-hidden Web 2.0 presentation, here: http://kentbrewster.com/badges/, and see a quick example.

  10. Posted June 17, 2008 at 8:04 am | Permalink

    @Kent: Yeah, as further steps I was thinking of rolling in the CSS bits, and maybe flirting with some innerHTML evil to declare the initial widget in plain HTML rather than DOM construction calls. This was an event-inspired hack, but I’ve been meaning to tinker more with this stuff for ages :) Thanks for advancing the state of art!

  11. رضا باقرزادخ
    Posted June 18, 2008 at 8:20 am | Permalink

    بنیاد موزیلا باید به ایران به عنوان یکی از ده کشور برتر حامی خود توجه بیشتری نماید و در فارسی سازی افزونه ها و وب سایت اصلی خود شرکت اقدامات مقتضی را انجام نماید.

  12. Posted June 18, 2008 at 9:18 am | Permalink

    I don’t understand this language, but it doesn’t seem like spam—as long as you’ve not called my mother any nasty names, I thank you for the comment :)

    (And any translations would be welcome!)

  13. Posted June 18, 2008 at 9:35 am | Permalink

    the best forever
    incomparable forever
    on top forever
    all favorite forever

  14. مهدی احمدزاده
    Posted June 18, 2008 at 10:16 am | Permalink

    از مرورگر موزیلا بسیار راضیم
    بچه ها شما هم بگیرید

  15. YAGHOON
    Posted June 18, 2008 at 10:36 am | Permalink

    شرکت موزیلا ببین که ایرانین جو ده کشور دانلود کننده فایر فاکس هستند

    پس چرا سایت و خود برنامه فایر فاکس رو فارسی نمیکنی؟

  16. iman
    Posted June 18, 2008 at 11:12 am | Permalink

    VIVA IRAN
    We Are Waiting For Your Persian Services MOZILLA !!!!

  17. دلگرفته
    Posted June 18, 2008 at 11:27 am | Permalink

    خوشحالم که ایران هم بله … !!!

  18. mahdy
    Posted June 18, 2008 at 12:14 pm | Permalink

    http://www.iranian-it.net/itf/showthread.php?tid=1348

  19. Posted June 18, 2008 at 12:14 pm | Permalink

    بهتره opera

  20. madx22
    Posted June 18, 2008 at 1:29 pm | Permalink

    firefox .!! we are here . ( iranian people)

  21. madx22
    Posted June 18, 2008 at 1:30 pm | Permalink

    hey FireFox !!!

    We are here!

    (Iranian people)

  22. Posted June 18, 2008 at 2:29 pm | Permalink

    I’m proud to be a Firefox user and also to see Iran in top-ten list. I’m glad Iranians are a part of this celebration:)

  23. bandekhoda
    Posted June 18, 2008 at 2:37 pm | Permalink

    akhe chera kos sher migin … tu iran ki internet dare ke betune hamun 10 mego dw kone , yani vaghean fekr mikonin iran az canda ham bishtar dw karde? akhe cheghad shomaha koskholid
    pas chera iran tu in nist ? http://downloadcounter.sj.mozilla.com/

  24. Posted June 18, 2008 at 8:02 pm | Permalink

    سلام
    با تشکر از زحمات بنیاد موزیلا
    خوشحالم شدم در مورد رکوردشکنی فایرفاکس
    امیدوارم زبان فارسی نیز جزو زبان های رسمی موزیلا باشه
    به امید آن روز

  25. sajad
    Posted June 18, 2008 at 9:46 pm | Permalink

    از موزیلا بدم میاد opera بهتره

  26. سيد محسن منتظري
    Posted June 18, 2008 at 10:49 pm | Permalink

    متأسفانه تنظيم نمايش عدد به فارسي كه پيش از اين از قسمت
    bidi.numeral
    انجام مي شد در نسخه جديد اين امكان وجود ندارد و اعداد را به فارسي نمايش نمي دهد

  27. asghar
    Posted June 18, 2008 at 11:13 pm | Permalink

    با سلام و عرض تبریک به حضور تمامی فایر فاکس دوستان

  28. Posted June 18, 2008 at 11:16 pm | Permalink

    فوق العاده بود . واقعا این فایرفاکس مهشره . اویول به همه ایرانیا

  29. behrouz
    Posted June 18, 2008 at 11:32 pm | Permalink

    yashain iran usaki

  30. behrouz
    Posted June 18, 2008 at 11:34 pm | Permalink

    kaf kardam roy in torkaro kam kardim

  31. Posted June 19, 2008 at 1:22 am | Permalink

    اینم جواب bandekhoda
    پس چرا ایران تو این لیست هستش :
    http://www.spreadfirefox.com/en-US/worldrecord/
    اون لیست یه لیست ساده و استاتیک هستش

  32. Milad
    Posted June 19, 2008 at 2:11 am | Permalink

    Hi mozilla Company.
    Im in IRAN and offer all my friends to downloading FF3
    Because IRANIAN people LOVE ”Firefox”
    IRANIANS need more support from MOZILLA.

  33. Posted June 19, 2008 at 2:34 am | Permalink

    i love mozilla

  34. Posted June 19, 2008 at 4:38 am | Permalink

    فقط میتونم بگم آخرشه . بهترین پیمانه و استاندارد برای برنامه نویسان و طراحان وب!!!!
    Just FireFox
    It’s The Best Solution For Web Designer !!!!

    Be Fun

  35. Posted June 19, 2008 at 4:42 am | Permalink

    We Are Waiting For Persian Language and Other Additional for IRANian Users!

  36. Posted June 19, 2008 at 4:59 am | Permalink

    امیدوارم زبان فارسی نیز جزو زبان های رسمی موزیلا باشه

  37. Posted June 19, 2008 at 7:47 am | Permalink

    سلام
    ما ایرانیان با کمترین شرایط بهره وری از اینترنت حماسه می آفرینیم
    با سپاس

  38. Bad Boys
    Posted June 19, 2008 at 8:44 am | Permalink

    Hey MOZILLA !!!
    We are here for support you and so
    waiting for your PERSIAN services. ( from PERSIAN boys )

  39. Daniyal
    Posted June 19, 2008 at 11:06 am | Permalink

    به نظر من هم موزیلا بهترین مرورگر اینترنته شرکت موزیلا هم باید امکانات فارسی رو به این همه کاربر فارسی زبان که از این مورورگر خوب استفاده میکنن اختصاص بده
    ای ول به Firefox

  40. mohammad
    Posted June 19, 2008 at 12:46 pm | Permalink

    we support the mozilla project with download firefox3.
    viva Firefox viva persia…

  41. Posted June 19, 2008 at 1:14 pm | Permalink

    hi.
    please start mozila by persian language for iranian.
    please.

  42. Farzad
    Posted June 19, 2008 at 2:08 pm | Permalink

    persian menu?

  43. Farzad
    Posted June 19, 2008 at 2:09 pm | Permalink

    ایول
    فایر فاکس 3 خیلی عالیه

  44. Posted June 19, 2008 at 3:41 pm | Permalink

    So, I think what you’re all saying is that you’d like Firefox in Persian? :)

    But alas, while I appreciate the sentiment, I don’t think an entry on my blog about a JavaScript widget is the best place to rally support for the cause. Of course, localizing a JavaScript widget might be interesting someday…

12 Trackbacks

  1. [...] came up with a way to syndicate the Download Day JSON feed. You might want to check it out. Here is an [...]

  2. [...] de la notícia: Blog del toniher Widget de resultats Molta més [...]

  3. [...] ریلیز شد، خیلی ها دانلود کردن. امروز با کمک نیما آمار و نتایج رو که نگاه میکردم متوجه واقعیت تلخی شدم. ایران در رتبه [...]

  4. [...] ۱۰ کشور برتر دانلود کننده رو به صورت لحظه ای میتونید از اینجا مشاهده کنید که هم اکنون ایران در جایگاه هفتم قرار داده [...]

  5. [...]  نام ايران در فهرست ده كشور دانلود كننده نسخه ۳ فاير فا… [...]

  6. [...] فایرفاکس ۳ که فکر کنم ایران هم جای خوبی توش داره منبع :۰xDECAFBAD [Tags: download, firefox 3] [Category : Web [...]

  7. [...] نوشت “اختصاصی فایرفاکس : ایران را چه میشود؟” …آمار و نتایج رو که نگاه میکردم متوجه واقعیت تلخی شدم. ایران در رتبه [...]

  8. [...] ۱۰ کشور برتر دانلود کننده رو به صورت لحظه ای میتونید از اینجا مشاهده کنید که هم اکنون ایران در جایگاه هفتم قرار داره. [...]

  9. By links for 2008-06-19 on June 19, 2008 at 1:09 am

    [...] 0xDECAFBAD » Firefox 3 Download Day Mega Widget ایران در جایگاه هفتم کشورهای دانلود کننده فایرفاکس (tags: firefox) [...]

  10. [...] دریافت کد آمار ۱۰ کشور اول دانلودکننده [...]

  11. [...] نتایج اولین روز دانلود فایرفاکس 3 را در این آدرس و این آدرس مشاهده کنید. همان طور که در نقشه آدرس اول می بینید ، [...]

  12. [...] ۱۰ کشور برتر دانلود کننده رو به صورت لحظه ای میتونید از اینجا مشاهده کنید که هم اکنون ایران در جایگاه هفتم قرار داره. [...]