Google Toolbar Detection

Discussion in 'JavaScript' started by tthomas, Feb 20, 2007.

  1. #1
    Hi,
    I'm looking for the updated code to detect the newest version of Google Toolbar. There's old javascript out there but does not work with the new version of the toolbar. Does anyone have any solution?
    Thanks a lot.
    Thomas.
     
    tthomas, Feb 20, 2007 IP
  2. DeViAnThans3

    DeViAnThans3 Peon

    Messages:
    785
    Likes Received:
    83
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Probably this is because google changed the classid of the toolbar.
    I found this code: -which is outdated-
    <html>
    <head>
    <title>google toolbar detection</title>
    <object id="detection" classid="clsid:00EF2092-6AC5-47c0-BD25-CF2D5D657FEB"></object>
    </head>
    <body>
    <script language="javascript" type="text/javascript">
    if (typeof(detection.Search)!= "undefined") {
    document.write("google toolbar Installed");
    }
    else {
    document.write("google toolbar Not Installed");
    }
    </script>
    </body>
    </html>
    Code (markup):
    Now, you see this: 00EF2092-6AC5-47c0-BD25-CF2D5D657FEB. That was an old google class ID. The newer could be found into the registry usually, but I think we'll drop that part lol.
    After some search, I found some *possible* CLSID's whereunder GTB (google toolbar) works. $edit: those keys are pretty up-to-date, so ..
    FBA44040-BD27-4A09-ACC8-C08B7C723DCD
    6134CEA9-DD6E-495C-A0D1-4F232027D7D7

    Try both of them, and see what it gives :)

    *Note: for the script to work, the client browser needs ActiveX allowed. If not, this won't work! Probably, for security reasons, the script might get blocked, because it could be seen as a security thread. I'm almost 100% sure that by example the script won't work on Firefox.

    Hope this helps you a bit
    peace
     
    DeViAnThans3, Feb 23, 2007 IP
  3. tthomas

    tthomas Peon

    Messages:
    10
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Neither one works.
    but thanks for your help.
     
    tthomas, Feb 28, 2007 IP
  4. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #4
    ajsa52, Feb 28, 2007 IP