搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

How do I manually add an RSS feed?

  • 6 回覆
  • 10 有這個問題
  • 24878 次檢視
  • 最近回覆由 goodday

more options

I remember live bookmarks can add them by presenting an icon, but what if all I can get is the feed url?

被選擇的解決方法

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();}})();
  1. make sure that you have the "Subscribe to this page" icon on the Navigation Toolbar
  2. create a new bookmark (AddFeed on the Bookmarks Toolbar) with the location set as the full JavaScript code
  3. open the page with the feed content in a tab
  4. invoke the bookmark with the JavaScript code
  5. this should open a new tab/window with the subscribe toolbar button enabled (highlighted)
  6. click the subscribe button to open the feed page
從原來的回覆中察看解決方案 👍 2

所有回覆 (6)

more options

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.

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.

more options

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.

more options

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

more options

選擇的解決方法

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();}})();
  1. make sure that you have the "Subscribe to this page" icon on the Navigation Toolbar
  2. create a new bookmark (AddFeed on the Bookmarks Toolbar) with the location set as the full JavaScript code
  3. open the page with the feed content in a tab
  4. invoke the bookmark with the JavaScript code
  5. this should open a new tab/window with the subscribe toolbar button enabled (highlighted)
  6. click the subscribe button to open the feed page

由 cor-el 於 修改

more options

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

more options

Wow that's some great detective work...thanks!