Wednesday, January 10, 2007

Fixing the Air Deccan website on Firefox

The wacky geek in me got the better of me this morning. Instead of spending the customary 30 mins reading up news on Google Reader, I spent my time fixing up the b0rked up Air Deccan website.

The Air Deccan website is broken due to poorly written Javascript and HTML which works only in IE. This was not the case some time back when the website used to work in Firefox uptil the payment step. Some recent "upgrades" broke the basic flight search in Firefox as well.

Thanks to the cool Firefox add-on called Greasemonkey you can fire up custom javascript after a website has been loaded. I quickly hacked up a greasemonkey script to fix the air deccan website on Firefox. Simply click on the previous link to install the userscript after you have installed Greasmonkey.

Steps to make the Air Deccan website work in Firefox:
  1. Install Greasemonkey
  2. Install the userscript to fix the Air Deccan website
  3. In case the script doesn't work for you delete all cookies from airdeccan.net and try reloading the page. (Edit > Preferences > Privacy > Cookies > View Cookies. Search for airdeccan.net; select all the cookies and click on the "Remove Cookies" button)


Let me know in case you end up doing Step 3 given above. I'll try to modify the userscript to fix that case as well.

How to know the Greasemonkey script worked?



Before the script


After the script

Now I'll go back to reading the news :)

No comments:

Post a Comment