Walker News

How To View RSS Feed In XML Format With Firefox

Similar to IE7, Firefox 2.x built-in Feed Reader that understand RSS and Atom protocol.
By default, both IE7 and Firefox are set to render the XML format of RSS / ATOM feed in human readable form.
Although the default reader works well for majority users, developers might sometimes expect turn it off to inspect the underlying XML structure of a Feed.

Turn off IE7 Feed Reading View, i.e. disable the feed preview option to view or display the underlying XML code structure of a RSS or ATOM feed.

IE7 comes with an option to turn off or disable Feed preview function. However, Firefox 2.x doesn’t have such explicit option to do so!

Though, Moggylaceous posted a simply hack or trick to disable the Feed preview function in Firefox 2.x too.

All you need to do is edit the FeedConverter.js, a JavaScript file that comes with Firefox installation.

In my Windows Vista Ultimate, this FeedConverter.js is located at this path
C:\Program Files\Mozilla Firefox\components\FeedConverter.js

Open the FeedConverter.js, search for this block of code and remark it to become comment (refer to the screenshot below for reference)
if (result.doc && (!this._sniffed || (result.doc.title && (result.doc.link || result.doc.id)))) {

and add a new line, i.e. if (0) {, as a replacement to the remarked block of code.

Simple hack to turn off Firefox 2.x Feed preview option.

For Windows Vista, saving the FeedConverter.js file might be rejected with an error message that similar to “Please check whether if this file is opened in another program.”

In this case, you might wonder what other application using FeedConverter.js file while there is no active Firefox is running.

Well, it’s not because of Firefox, but this is likely due to Windows Vista UAC security feature! I’ve successfully save the change by using Notepad++ that was executed in an elevated Command Prompt window!

Once the changes are saved, restart Firefox to get it renders the underlying structure of a Feed. (Though, this hack doesn’t work with ATOM feed).

Firefox 2.0.0.9 turn off Feed preview to show underlying XML structure of a Feed.


Custom Search

  1. Walker April 18th, 2008 3:22 PM

    @matt, I modified this post as a reply to your email.
    Thank you pointing out my poor English.

  2. Google Chrome: Browser Cache Folder Is Defensive! – Walker News September 19th, 2008 1:25 AM

    [...] IE7 or Firefox, Google Chrome doesn’t cache or keep temporarily Internet files in master cache folder that [...]

  3. Google Chrome Has More Effective Flash Video Cache Technique Than IE7 and Firefox 3 – Walker News October 22nd, 2008 12:55 AM

    [...] Indeed, now I believe Google Chrome has more effective Flash video cache technique than Internet Explorer and Firefox. [...]

  4. Ryan Hickman June 7th, 2009 2:58 AM

    Any ideas as to why Notepad++ requires elevated permissions to save the file?

    I am a Web Developer that often uses WinSCP + Notepad++ and I have been running into this notice quite a lot. I never thought to set it to elevate each time it runs (via Notepad++.exe properties), but I find it insecure to do so.

    What other application could be opening these files?!

  5. Walker June 7th, 2009 9:55 AM

    I don’t have this elevated permission problem except when saving a files into a directory that trigger Consent UI, for example when saving changes to hosts file inside System32 folder.

  6. Soylent October 29th, 2009 6:57 AM

    Why not just use view-source in the address bar?

    view-source:http://www.walkernews.net/feed/atom

  7. The Bler January 2nd, 2010 3:32 PM

    A feed validation service will show you the contents of an RSS feed from any browser.

    e.g.
    http://beta.feedvalidator.org/

  8. Joel July 9th, 2010 5:08 AM

    line 242 in my version, I changed to:

    if (result.doc && result.uri.spec.indexOf(“DOMAIN_TO_IGNORE”) == -1) {