Skip to content

Instantly share code, notes, and snippets.

@benubois
Created September 9, 2016 03:50
Show Gist options
  • Save benubois/4c1f9203d522854ffc78f0ca2aa3ce0f to your computer and use it in GitHub Desktop.
Save benubois/4c1f9203d522854ffc78f0ca2aa3ce0f to your computer and use it in GitHub Desktop.
<a href="javascript:void(d=document);void(el=d.getElementsByTagName('link'));void(g=false);for(i=0;i<el.length;i++){if(el[i].getAttribute('rel').indexOf('alternate')!=-1){ty=el[i].getAttribute('type');if(ty.indexOf('application/rss+xml')!=-1||ty.indexOf('text/xml')!=-1||ty.indexOf('application/atom+xml')!=-1){g=true;h=el[i].getAttribute('href');a=document.createElement('a');a.href=h;void(location.href='https://feedbin.com?subscribe='+a.href);}}};if(!g){window.alert('No Feed Found');};">Subscribe In Feedbin</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment