Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Pick feed and subscribe in Feedly
javascript:void%20function(){var%20e=document.getElementsByTagName(%22link%22);for(li%20in%20e)if(e[li].rel%26%26(-1!==e[li].type.indexOf(%22rss+xml%22)||-1!==e[li].type.indexOf(%22atom+xml%22))%26%26confirm(e[li].href))return%20void%20window.open(%22http://feedly.com/i/subscription/feed/%22+e[li].href,%22_blank%22);alert(%22No%20valid%20feeds%20found!%22)}();
var l = document.getElementsByTagName('link'), f = [];
for ( li in l ) {
if ( l[li].rel && ( -1 !== l[li].type.indexOf('rss+xml') || -1 !== l[li].type.indexOf('atom+xml') ) ) {
if ( confirm( l[li].href ) ) {
window.open( 'http://feedly.com/i/subscription/feed/' + l[li].href, '_blank' );
return;
}
}
}
alert( 'No valid feeds found!' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.