Bookmarklet: Display Feed Links on Current Page

Martin Dittus · 2006-03-16 · code, tools · 5 comments


I found an older article on the Google Reader blog where they post a great bookmarklet: It displays feeds referenced by the current page and allows you to preview them in Google Reader. Convenient for their users, and a great building block for a more generic tool.

I've modified their code in a number of ways -- the most obvious change is that the bookmarklet-generated links will point directly to the respective feed URLs, not to a Google Reader preview page. Then there are some cosmetic changes (I didn't like their choice of generated markup), but not much else.

Here's my version:

Show all feeds

I'll be using this bookmarklet a lot -- Safari's handling of the <link>-tag is not very convenient, and I've just about enough of manually looking for feed links, be it on the page or (frequently also) in the HTML source.

Chris Wetherell of the Google Reader team states in their aforementioned article that this will not work in IE6 with SP2 -- I haven't tested on any IE. FF and Safari work fine.

Update: 2006-03-16 -- made some small changes to the code.

Update: 2006-03-17 -- fixed a text color bug on some sites. Slightly shorter code.

Update: 2006-03-19 -- fixed another text-related bug on some sites. Some refactoring -> even shorter.

Update: 2006-05-08 -- Pascal Van Hecke pointed to this article in his own blog, and one of his readers states in the comments that it's also working in Opera.

Update: 2006-06-22 -- Horst Gutmann uses the bookmarklet to work around a usability issue in Opera 9.0 (see forum discussion)

Update: 2006-11-18 -- Marjolein Hoekstra extends this into an OPML Auto-discovery Bookmarklet, cool idea! The accompanying article also has a great explanation of the process of feed discovery, and on how to make your OPML auto-discoverable, so it's definitely a recommended read.

Next article:

Previous article:

Recent articles:


Great, thank you :D

Exactly what I was looking for for Camino :)

Horst Gutmann, 2006-03-17 13:06 CET (+0100) Link

Good to hear it's working there too ;)

Let me know if someone tries this on IE -- hm, or maybe I should simply boot up my old Thinkpad.

Martin Dittus, 2006-03-17 18:30 CET (+0100) Link


Great Bookmarklet - IE does fine, at least IE7 on my pc!

Pascal Van Hecke, 2006-04-09 15:31 CET (+0100) Link

Whow, _that_ I didn't expect!
thx for the note.

Martin Dittus, 2006-04-09 21:46 CET (+0100) Link

I've made a small modification available that also changes the links to have the feed:// protocol so that you can use Opera's protocol binder for feeds :)

, 2006-06-22 12:20 CET (+0100) Link

Comments are closed. You can contact me instead.