Last active
October 2, 2015 09:28
-
-
Save kasparsd/622b9e9f6e5a7d15b191 to your computer and use it in GitHub Desktop.
Pick feed and subscribe in Feedly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)}(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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