Bookmarklet
From Boxtheweb
The bookmarklet is still experimental at this point. To use it drag one of the following links to your bookmarks bar or add to your favourites:
- javascript:(function(){var%20tags%20=%20document.getElementsByTagName('channel');%20if(tags.length%20>%200)%20{var%20tag%20=%20document.createElement('link');tag.href=window.location;tag.rel='alternate';tags[0].appendChild(tag);}%20tags%20=%20document.getElementsByTagName('feed');%20if(tags.length%20>%200)%20{var%20tag%20=%20document.createElement('link');tag.href=window.location;tag.rel='alternate';tags[0].appendChild(tag);}%20var%20loc%20=%20new%20String(window.location);%20if(loc.match(/http:\\/\\/.*?xanga.com/)){var%20tmp%20=%20loc.split('/');var%20tag%20=%20document.createElement('link');var%20xangauser%20=%20tmp[3];xangauser%20=%20xangauser.replace(/home.aspx?user=/,);tag.href='http://www.xanga.com/rss.aspx?user='%2BencodeURIComponent(xangauser);tag.rel='alternate';document.body.appendChild(tag);}%20var%20thelink=false;%20var%20linktags%20=%20document.getElementsByTagName('link');%20for(var%20i=0;i<linktags.length;i%2B%2B)%20{if(linktags[i].href%20&&%20linktags[i].rel.match(/.*alternate.*/)){thelink=linktags[i];break;}}%20%20if(!thelink)%20{linktags%20=%20document.getElementsByTagName('a');%20for(var%20i=0;i<linktags.length;i%2B%2B)%20{if(linktags[i].href%20&&%20linktags[i].rel.match(/.*alternate.*/)){thelink=linktags[i];break;}}}%20if(thelink%20&&%20thelink.href)%20window.location='http://www.awriterz.org/etcetc/boxtheweb/updateboxes.php?type=feed&contents='%2BencodeURIComponent(thelink.href)%2B'&width=400&summary=on&newbox=1&redirect_to='%2Bwindow.location;%20else%20{%20if(confirm('This%20page%20appears%20to%20have%20no%20valid%20feed...%20try%20to%20add%20anyway?'))%20window.location='http://www.awriterz.org/etcetc/boxtheweb/updateboxes.php?type=feed&contents='%2BencodeURIComponent(window.location)%2B'&width=400&summary=on&newbox=1&redirect_to'%2Bwindow.location;%20}})(); -- default max items to unread items
- javascript:(function(){var%20tags%20=%20document.getElementsByTagName('channel');%20if(tags.length%20>%200)%20{var%20tag%20=%20document.createElement('link');tag.href=window.location;tag.rel='alternate';tags[0].appendChild(tag);}%20tags%20=%20document.getElementsByTagName('feed');%20if(tags.length%20>%200)%20{var%20tag%20=%20document.createElement('link');tag.href=window.location;tag.rel='alternate';tags[0].appendChild(tag);}%20var%20loc%20=%20new%20String(window.location);%20if(loc.match(/http:\\/\\/.*?xanga.com/)){var%20tmp%20=%20loc.split('/');var%20tag%20=%20document.createElement('link');var%20xangauser%20=%20tmp[3];xangauser%20=%20xangauser.replace(/home.aspx?user=/,);tag.href='http://www.xanga.com/rss.aspx?user='%2BencodeURIComponent(xangauser);tag.rel='alternate';document.body.appendChild(tag);}%20var%20thelink=false;%20var%20linktags%20=%20document.getElementsByTagName('link');%20for(var%20i=0;i<linktags.length;i%2B%2B)%20{if(linktags[i].href%20&&%20linktags[i].rel.match(/.*alternate.*/)){thelink=linktags[i];break;}}%20%20if(!thelink)%20{linktags%20=%20document.getElementsByTagName('a');%20for(var%20i=0;i<linktags.length;i%2B%2B)%20{if(linktags[i].href%20&&%20linktags[i].rel.match(/.*alternate.*/)){thelink=linktags[i];break;}}}%20if(thelink%20&&%20thelink.href)%20window.location='http://www.awriterz.org/etcetc/boxtheweb/updateboxes.php?type=feed&contents='%2BencodeURIComponent(thelink.href)%2B'&width=400&max=3&summary=on&newbox=1&redirect_to='%2Bwindow.location;%20else%20{%20if(confirm('This%20page%20appears%20to%20have%20no%20valid%20feed...%20try%20to%20add%20anyway?'))%20window.location='http://www.awriterz.org/etcetc/boxtheweb/updateboxes.php?type=feed&contents='%2BencodeURIComponent(window.location)%2B'&width=400&max=3&summary=on&newbox=1&redirect_to'%2Bwindow.location;%20}})(); -- default max items to 3
Then when you come to a page whose feed you want to add to your BoxtheWeb (or to a feed page) you can click the bookmark you just created and it will automatically add it to your BoxtheWeb and then bring you back to the page.