Skip to content

Instantly share code, notes, and snippets.

@olegp
Created March 6, 2011 11:30
Show Gist options
  • Save olegp/857215 to your computer and use it in GitHub Desktop.
Save olegp/857215 to your computer and use it in GitHub Desktop.
Subscribe
(function(){
var url;
var links = document.getElementsByTagName("link");
for(var i = 0, l = links.length; i < l; i ++) {
var link = links.item(i);
if(link.tagName.toLowerCase() == "link") {
if(link.getAttribute("type") == "application/rss+xml") {
location.href = "http://www.google.com/reader/preview/*/feed/" +
"http://fulltextrssfeed.com/" +
link.getAttribute("href").substr("http://".length);
return;
}
}
}
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment