Tuesday, 17. Oct 2006

Browser detection in Javascript

I have a need for a good, but not precise, browser sniffing script for purposes of web visitor logging. I have hacked together such a script. I would be very grateful if my visitors would tell me if the blue box is telling them the truth (javascript needed):

It's been confirmed to work on:

  • Mac : Safari 2.0.4 (419.3)
  • Mac : Firefox 1.5
  • Mac : Opera 9.02
  • Mac : MSIE 5
  • Windows : MSIE 7 rc1
  • Windows : MSIE 6
  • Windows : MSIE 5.01
  • Windows : Firefox 1.5
  • Windows : Firefox 2.0 rc3

16 comments to “Browser detection in Javascript”

  1. Well... Running SLED 10 with Firefox 1.5.0.7 and I get 1050x1680x24bit instead of what I think should be 1680x1050x24bit. Everything else seems fine.

    Árni Hermann wrote 17.10.2006 19:22

  2. Check out PPK's Browser Detect 2.0

    Már wrote 17.10.2006 20:32

  3. It looks plausible, but I'm blissfully ignorant and don't actually know that much about my machine. I'm just a mac user, what do you expect? ;-)

    Herra BRE wrote 18.10.2006 6:28

  4. It works on Internet Explorer 5 on a Mac, too. Which will be useful.

    Annie Rhiannon wrote 18.10.2006 17:52

  5. The bluebox is telling me the truth. Hail to the bluebox!

    Lilja wrote 18.10.2006 19:08

  6. Platform: Windows
    Screen: 1280x1024x32bit
    Browser: Firefox
    Browser version: 2 (rc3)
    Flash: 9

    Borgar wrote 20.10.2006 10:06

  7. jújú. skil ekki þetta tímatal samt

    Hel wrote 20.10.2006 21:09

  8. All good on my machine, except I lacked the gumption to check the timestamp.

    Gulli wrote 26.10.2006 9:57

  9. Mac. Firefox 2. The box speaks the truth.

    Tóró wrote 28.10.2006 11:43

  10. mjamm, right on

    Lora wrote 28.11.2006 17:34

  11. Platform: Macintosh
    Screen: 1440x900x32bit
    Browser: Safari
    Browser version: 418.8
    Flash: 8

    Borgar wrote 29.11.2006 12:14

  12. works fine for me:
    Time: 1165953963752+300
    Platform: windows
    Screen: 1440x900x32bit
    Browser: Firefox
    Browser version: 2
    Flash: 8
    Request: HTTP://borgar.undraland.com/programs/sniffer/
    Referrer:

    Rodrigo wrote 12.12.2006 20:04

  13. Virkar fínt!

    Time: 1166028949692+0
    Platform: Macintosh
    Screen: 1680x1050x32bit
    Browser: Firefox
    Browser version: 2
    Flash: 9
    Request: HTTP://borgar.undraland.com/s/2006/10/17/18.56.07/#comments
    Referrer: HTTP://borgar.undraland.com/

    arnario wrote 13.12.2006 16:53

  14. The box doth indeed speak only truth on kubuntu 6.10, KDE 3.51, konqueror.

    I particularly liked how moving it from the laptop screen to the larger external monitor and reloading changed the reported screen resolution.

    Logi wrote 20.12.2006 14:22

  15. Platform: Macintosh
    Screen: 1280x854x32bit
    Browser: Safari
    Browser version: 418.9

    Safari segist samt vera 419.3 hjá mér og ég hélt að millions of colours væri 24 bita en það eru líklegast mín mistök.

    Kalli wrote 18.1.2007 10:32

  16. Looks about right...

    Time: 1186566219489+0
    Platform: windows
    Screen: 1920x1200x32bit
    Browser: Firefox
    Browser version: 2
    Flash: 9
    Request: HTTP://borgar.undraland.com/s/2006/10/17/18.56.07/

    Kiddi wrote 8.8.2007 9:31


This page

Archives

Search this page


Page style: Use my settings