
How do I manually add an RSS feed?
I remember live bookmarks can add them by presenting an icon, but what if all I can get is the feed url?
Chosen solution
Try this variant as a bookmarklet.
javascript:(function(){function hEsc(s){return(s.replace(/&|<|>/g,function(r){return(r=='&'?'%26amp;':r=='>'?'%26gt;':r=='<'?'%26lt;':'')}))}function lEsc(s){return(s.replace(/&/g,'%26amp;').replace(/"/,'%26quote;'))}t=hEsc(document.title);h='<link rel="alternate" type="application/rss+xml" title="'+t+'" href="'+lEsc(location.href)+'" />';with(window.open().document){write('<html><head>'+h+'</head><body>Click the highlighted RSS feed icon</body></html>');close();}})();
- make sure that you have the "Subscribe to this page" icon on the Navigation Toolbar
- create a new bookmark (AddFeed on the Bookmarks Toolbar) with the location set as the full JavaScript code
- open the page with the feed content in a tab
- invoke the bookmark with the JavaScript code
- this should open a new tab/window with the subscribe toolbar button enabled (highlighted)
- click the subscribe button to open the feed page
All Replies (6)
The easiest method is to use the Firefox subscribe icon for adding RSS feeds. I think that may not be shown by default but can be added by customising.
- Customize Firefox controls, buttons and toolbars
- Although a Thunderbird article this gives some background information you may find useful How to Subscribe to News Feeds and Blogs
As something to test note these support forum pages have feeds available can you add them using the icon ?
Another site is this blog https://blog.mozilla.org/ that has no link or button for the feeds but the feed can be found and used with the subscribe icon.
I have a keyword (rss) bookmarklet for cases like this:
data:text/html,<link rel="alternate" type="application/rss+xml" title="Add Feed" href="%S">
That should give you an enabled RSS feed button that you can click.
Hmm....I tried that but only got to subscribe to the feed once by going to a page with a valid feed, then returning. I think that's actually a bug. Here is a url you can try: http://weeklyspecials.safeway.com/rss.jsp?drpStoreID=1258&categories=Bread%20%26%20Bakery
Chosen Solution
Try this variant as a bookmarklet.
javascript:(function(){function hEsc(s){return(s.replace(/&|<|>/g,function(r){return(r=='&'?'%26amp;':r=='>'?'%26gt;':r=='<'?'%26lt;':'')}))}function lEsc(s){return(s.replace(/&/g,'%26amp;').replace(/"/,'%26quote;'))}t=hEsc(document.title);h='<link rel="alternate" type="application/rss+xml" title="'+t+'" href="'+lEsc(location.href)+'" />';with(window.open().document){write('<html><head>'+h+'</head><body>Click the highlighted RSS feed icon</body></html>');close();}})();
- make sure that you have the "Subscribe to this page" icon on the Navigation Toolbar
- create a new bookmark (AddFeed on the Bookmarks Toolbar) with the location set as the full JavaScript code
- open the page with the feed content in a tab
- invoke the bookmark with the JavaScript code
- this should open a new tab/window with the subscribe toolbar button enabled (highlighted)
- click the subscribe button to open the feed page
Modified
It looks weird: I sometimes get the subscribe page send as "application/xhtml+xml" if I use Alt + Enter to open the feed page another time in a new tab or just refresh the page.
It is the same URL only send by the server as application/xhtml+xml instead of text/html
Wow that's some great detective work...thanks!