Skip to content

Instantly share code, notes, and snippets.

@kasparsd
Last active October 2, 2015 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kasparsd/622b9e9f6e5a7d15b191 to your computer and use it in GitHub Desktop.
Save kasparsd/622b9e9f6e5a7d15b191 to your computer and use it in GitHub Desktop.
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