2017-10-22 Show All Feeds

This is the bookmarklet from dekstop which is based on the bookmarklet from the Google Reader days. The good part is that this is not an extension you need to install in your browser, it’s a little piece of Javascript that’s easily checked. It doesn’t load stuff from remote sites, either. Perfect!

Feel free to copy and paste from here into the URL of a bookmark.

  1. bookmark this page
  2. edit the properties of the new bookmark
  3. change the name to “Show All Feeds”
  4. change the location to the Javascript URL below
  5. done!
javascript:function%20txt(str){return%20document.createTextNode(str)}function%20tag(n,c){var%20e=document.createElement(n);e.style.fontFamily='Arial,sans-serif';e.style.color='#000';if(c)e.appendChild(c);return%20e}function%20p(c){return%20tag('p',c)}function%20a(href,desc){e=tag('a',txt(desc));e.href=href;e.style.color='#00c';e.style.textDecoration='underline';return%20e}var%20el=tag('div');el.style.zIndex=100000;el.style.position='absolute';el.style.padding='20px';el.style.top='10px';el.style.left='10px';el.style.backgroundColor='#ffffcc';el.style.border='1px%20solid%20#333333';el.style.textAlign='left';var%20ul=tag('ul');var%20found=false;var%20links=document.getElementsByTagName('link');for(var%20i=0,link;link=links[i];i++){var%20type=link.getAttribute('type');var%20rel=link.getAttribute('rel');if(type&&(type=='application/rss+xml'||type=='application/atom+xml')&&rel&&rel=='alternate'){var%20href=link.getAttribute('href');if(!href.match(/^http/)){var%20path=(href.match(/^\//))?%20'/'%20:%20location.pathname;href='http://'+location.hostname+path+href;}var%20title=link.getAttribute('title');ul.appendChild(tag('li',a(href,((title)%20?%20title+'%20-%20'%20:%20'')+href)));found=true;}}if(found){el.appendChild(p(txt('The%20current%20page%20links%20to%20these%20feeds:')));el.appendChild(ul);}else{el.appendChild(p(txt('The%20current%20page%20does%20not%20link%20to%20any%20feeds.')));}var%20close=a('#','Close');close.onclick=function(){el.style.display='none';return%20false;};el.appendChild(p(close));function%20addFeedBox(){document.body.appendChild(el);y=window.scroll(0,0);}void(z=addFeedBox());

This is what it looks like when you use “Show All Feeds” on this page:

Screenshot

Tags:

Comments

Awesome - just what I needed with Firefox removing Feed discovery in the Firefox 64.

COD 2018-12-27 13:58 UTC


Please make sure you contribute only your own work, or work licensed under the GNU Free Documentation License. Note: in order to facilitate peer review and fight vandalism, we will store your IP number for a number of days. See Privacy Policy for more information. See Info for text formatting rules. You can edit the comment page if you need to fix typos. You can subscribe to new comments by email without leaving a comment.

To save this page you must answer this question:

Please say HELLO.