As you can see, my blogroll is quite extensive, but it could be much larger, if it would be easier to add new bookmarks. Using this modification to my Roller installation, namely
bookmarks/BookmarkForm.jsp, adding a bookmark is as easy as clicking on a button.
(<a href="javascript:
void(baseurl='<%= RollerRequest.getRollerRequest(request).getRequestURL().re
placeAll("bookmarks.do","") %>bookmarkEdit.do?folderid=<%= RollerRequest.getRoll
erRequest(request).getFolder().getId() %>');
void(d=document);
void(rss='');
void(title=document.title);
void(url=window.location.href);
void(el=d.getElementsByTagName('link'));
for(i=0;i<el.length;i++) {
if (el[i].getAttribute('rel')) {
if( el[i].getAttribute('rel').indexOf('alternate')!=-1 && el[i].getAttri
bute('type') && (el[i].getAttribute('type').indexOf('application/rss+xml')!=-1 |
| el[i].getAttribute('type').indexOf('text/xml')!=-1)) {
void(rss=el[i].getAttribute('href'));
if (rss.search(/^http(s?):\/\//)==-1) {
rss = url.substring(0,url.lastIndexOf('/')+1) + rss;
}
}
}
}
void(window.location.href=baseurl+'&name='+escape(title)+'&url='+escape(url)
+'&feedUrl='+escape(rss));">Bookmarklet</a>)
This code adds a bookmarklet to the bookmark folder view that allows you to add bookmarks to your Roller weblog. It even contains an RSS-autodiscovery script, which original version can be found at
Laughing Meme.