Google Chrome now alerts you if a site has its own extension (check it out!)

Some preliminary searches don't seem to turn up anything... but if it works in the Stable build, the functionality must have existed for some time. I can't see anything obvious in the HTML or JavaScript of The Independent's site -- but maybe there was an update to the Extensions Gallery itself. Perhaps Perhaps, if the domain names on the site and extension match, it displays the yellow notification bar?
Either way, it's a great way for Google to draw the average user's attention to Chrome's extension abilities!
Perhaps other readers have spotted the same alert on other sites? Does anyone know how to enable it?
I should write a Download Squad extension and see if it works...
Update: It's a clever piece of JavaScript on the Independent site -- and nothing to do with Google!












Comments
13
Subscribe to commentsVinceMay 12th 2010 9:40AM
Seb, I think you made a tiny oversight. The "toolbar" is actually part of the page, not generated by Chrome. If you right click on the "Install" button and do "Inspect element", it is clear that the whole bar comes from the page.
Sebastian AnthonyMay 12th 2010 9:50AM
Hmmm!
Again, I searched the HTML/JS for mentions of the string used in the notification bar... couldn't find anything.
Did you find something? :)
VinceMay 12th 2010 9:58AM
The Javascript is on Line 181 of the front page source. And if you scroll up/down the page rapidly, the toolbar takes a second to catch up. There is also the fact that you are able to right click the toolbar (can't do this with Chrome-generated toolbars).
The full JS for the toolbar, as referenced in the source, is here:
http://www.independent.co.uk/independent.co.uk/editorial/javascript/tb.js
kurtextremMay 12th 2010 9:43AM
I'm agree with Vince^^
AndyMay 12th 2010 9:53AM
It's part of the page, generated with the following javascript file :http://www.independent.co.uk/independent.co.uk/editorial/javascript/tb.js
Sebastian AnthonyMay 12th 2010 9:55AM
How 'bout that :)
Thanks for the info -- post updated.
KaushikMay 12th 2010 12:49PM
I would say it's very sneaky of Independent to camouflage their toolbar.
jValdronMay 12th 2010 3:03PM
Wouldn't that be kind of misleading for the normal user? It's almost like those fake anti-virus things, but more subtle. It even mislead Seb ^^
Sebastian AnthonyMay 12th 2010 3:32PM
*hangs head*
cyberguy91May 12th 2010 4:48PM
No worries, mate! =) Might be nice to tweak the title, though, for those that read headlines in a feed reader of some sort.
For future reference, though, see if you can right click on an element that you think is new. Also, in this case, when you rest over the close button, there is a hand (for a link, or javascript event). In Chrome, there is no hand. Hmm..... all of this talk makes me think I ought to write an article on identifying false browser alerts and the such.......
Keep up the great discoveries, though, Seb!!!
cyberguy91May 12th 2010 4:59PM
Oh, and BTW:
SHAME, SHAME, SHAME ON YOU, "The Independent"!
This is how you lose your reader/customer? base.
(oh, and I haven't even ever heard of the site before)
Sebastian AnthonyMay 12th 2010 8:26PM
They're a large-circulation newspaper in the UK! Like The Guardian, The Times, etc.!
Kevin Scott SchlangerJul 13th 2010 12:18PM
It's a scam.