Autodiscover RSS and Atom feeds as you browse, and then generate a subscriptions file you can import into any news aggregator.
Are you new to the world of syndication? If you've heard about using syndicated RSS or Atom feeds to keep up with your favorite sites in a news aggregator, here's an easy way to get started. Install the Feed Collector user script in this hack, and then simply visit the sites you visit regularly. Feed Collector will find the syndicated feeds automatically.
At the bottom-right corner of your browser window, you'll see a running total of the number of feeds collected so far. When you're ready, you're one click away from creating a subscriptions file that contains all the sites you've visited. The subscriptions file is in an XML format that's compatible with virtually every news aggregator.
For more information on syndicated feeds, visit http://www.atomenabled.org.
This user script runs on all web pages. The code is longer than most of the other hacks in this book, but it breaks down into four distinct parts:
<link> element in the page that points to the page's syndicated feed.
getHistoryCount, getHistoryItem, getAllHistoryItems, findHistoryItemByURL, ...