Skip to main content


Showing posts from July, 2009

Browser Highlighter Firefox extension / plug in

On my site we noticed that some of our users had some JavaScript problems which was affecting content editing. After a bit of nosing around we found the problem was a Firefox extension called The Browser Highlighter. This extension was created by eBay and it injects some JavaScript into the page which can affect the JS in your site. You can view this JavaScript in Firebug (it is in the script tag added just after the head tag) What follows is a means of detecting this extension so you can protect your code from it. Unfortunately, Mozilla Firefox does not provide an API into detecting browser extensions, but there is a work around. If the extension injects a graphic into the page (which this one does), it does so by referencing it from the chrome protocol. i.e. chrome://shim/content/compareLang-1/eBayCompareIcon_yellow.gif as opposed to the normal http protocol So all you have to do is reference this image and place an onload event on it. If the event fires then the extension is install