Mika Tähtinen

Developing ATOM/RSS feeds using Firefox

maanantaina 1. kesäkuuta 2009 klo 18.26

Ok, here's something I needed to Google for a while before I found the answer at http://www.walkernews.net/2007/11/20/how-to-view-rss-feed... so I decided to share the information and make the search easier and save some time from someone else using the same search terms as I did (which I subtly hid in the text :-).

The problem I had was that when you're developing ATOM or RSS feeds, you can't view the raw XML feed in Firefox since it has an automatic feed preview functionality which parses the feed to HTML using JavaScript and you can't even use Firebug to check the XML since the whole document is changed. There's no about:config option for disabling this so you need to hack the browser JavaScript.

For Mac OS Firefox the right file is located at /Applications/Firefox.app/Contents/MacOS/components/FeedConverter.js - I didn't actually get take a look at the code, just searched for the comment saying "// show the feed page if it wasn't sniffed and we have a document" and fixed the if-statement after that to always evaluate to false by changing it to "if (false && result.doc && (!this._sniffed || ...". After this you just need to restart Firefox and start developing.

Kommentit

Ei kommentteja.

Jätä uusi kommentti

Mikäli tämä kirjoitus herätti ajatuksia tai oli jollain tavalla hyödyllinen tai mielenkiintoinen niin arvostaisin suuresti, jos jättäisit kommentin! :)

Syötä nimesi!

Virheellinen osoite!

Kirjoita kommentti!

Virhe! Tarkista sanat.

Syötä yllänäkyvät sanat kenttään - tällä varmistetaan, että olet ihka oikea ihminen etkä joku salakavala spammiviestejä lähettävä automaatio. Mikäli et saa sanoista selvää, klikkaa kentän oikealla puolella olevaa päivitysnappia ja saat uudet sanat ihmeteltäviksi.