In-browser OPML editing

  Here's a bookmarklet written by Marc Barrot:
  <a href="javascript:(function(){{var%20head=document.getElementsByTagName('head')[0];var%20links=head.getElementsByTagName('link');var%20types=[];var%20hrefs=[];var%20titles=[];var%20src='';var%20msg='';var%20doEdit=function%20(){location='http://ijot.net/?u='+src;};for(var%20i=0;i%3Clinks.length;i++){if(links[i].attributes.type&&(links[i].attributes.type.nodeValue.indexOf('opml')!=-1||links[i].attributes.type.nodeValue.indexOf('rss')!=-1)&&links[i].attributes.href){types.push((links[i].attributes.type.nodeValue.indexOf('opml')!=-1)?'opml':'rss');hrefs.push(links[i].attributes.href.nodeValue);titles.push((links[i].attributes.title)?links[i].attributes.title.nodeValue:'');if(links[i].attributes.type.nodeValue.indexOf('opml')!=-1&&links[i].attributes.title&&links[i].attributes.title.nodeValue=='source'){src=links[i].attributes.href.nodeValue;}}}if(hrefs.length===0){alert('This%20page%20has%20no%20editable%20elements.');}else{if(hrefs.length==1){location='http://ijot.net/?u='+hrefs[0];}else{if(src){location='http://ijot.net/?u='+src;}else{alert('This%20page%20contains%20'+hrefs.length+'%20editable%20components.%20Try%20the%20OpenInIjot%20bookmarlet%20to%20access%20them%20-%20check%20out%20the%20iJot%20Tools%20page.');}}}}})()" title="bookmarklet: drag to bookmarks bar">iJotEdit
  As with all bookmarklets, you install it by dragging it from the web page into the icon bar in your browser.
  Now, with the browser open to this page, click on the bookmarklet and prepare to have your socks blown off! :-)
  The source of the page opens in the browser, in an outliner, where you can browse it and edit it. The editing doesn't save back to the server, yet -- but it will. (Of course only if you have permission to edit the document.)
  Marc already had a web outliner called iJot. I showed him how Scripting2 embeds a link to the OPML source in every page. From there it was relatively easy to detect the OPML and open it.
  A lot of people will want to edit this way.
  BTW, this is how a bootstrap works. :-)