Sorry BBC, my pimped Firefox made me think you did wrong
Sunday, May 17th, 2009 at 7:48 pmHere’s an interesting example of me being a typical developer. This morning I checked a news piece of Danger Mouse sticking it to EMI by releasing their album as a blank CDR and got an alert()
on the BBC site:
As you can see the alert clearly states that it comes from the BBC site – a nice anti-phishing feature that browsers added in the last few years.
I was confused, first and foremost because the BBC has their own library “Glow” which is yet to be released as open source and secondly as there are no menus on the page that are JavaScript or Yahoo dependent. Furthermore I was amazed to see the BBC to be as unprofessional as using an alert in a live site.
As BBC JavaScript overlord Jake Archibald rightly pointed out the alert did not come from their site or is anywhere in their code. I had looked through the numerous JavaScript includes (seriously, collate on the server, folks) in the page and couldn’t find it either.
Jake’s second comment made me aware what happened. Instead of seeking the error in my own setup I immediately thought the BBC messed up (this is the typical developer bit I was talking about). The solution to the problem was easy to remember once I was aware of it.
Friday before Hack Day we had the press in the office and wanted to show them some of the hacks previously built on hack days. One of them was Dharmafly’s HackHud which is a GreaseMonkey script that injects menus at interesting keywords into the BBC site. The script was broken and Premasgar tried to quickly fix it right on the spot leaving an alert in the GM script:
My lesson learned: don’t trust alerts, even when they tell you where they come from. Your pimped browser might give you a wrong message.
Tags: alerts, bbc, errors, firefox, greasemonkey, myfail, wrong reporting