Just as a tiny by-product during cleaning up my bookmarks I wrote some useful bookmarklets. Simply drag & drop them into your bookmark toolbar if desired:
Bookmarklet to digg (digg.com) the currently viewed website:
<a href="javascript:location.href='http://digg.com/submit?phase=2&url=' +escape(document.location.href)+'">digg it!</a>Drag'n'drop this link: digg it
Add page to del.icio.us:
<a href="javascript:location.href='http://del.icio.us/post?v=2&title=' +escape(document.title)+'&url='+escape(document.location.href)">delIcioIs</a>Drag'n'drop this link: delIcioUs
Look up in Wikipedia:
javascript:
function extractmarked(fenetre) {
if(fenetre.window.getSelection) {
return fenetre.window.getSelection();
}
if(fenetre.document.getSelection) {
return fenetre.document.getSelection();
}
if(fenetre.document.selection){
return fenetre.document.selection.createRange().text;
}
if(fenetre.selectionStart != null) {
var s = fenetre.selectionStart;
var e = fenetre.selectionEnd;
return fenetre.value.substring(s,e);
}
return '';
}
var framez=top.frames;
markedword=extractmarked(self);
if(markedword=='') {
for(cur_frame=0;cur_frame<framez.length;cur_frame++) {
if(markedword == '')
markedword=extractmarked(framez[cur_frame]);
}
}
if(markedword!='') {
void(wiki=open('http://en.wikipedia.org/wiki/'+markedword,'',
'scrollbars,menubar,location,toolbar,status,resizable')
}
Drag'n'drop this link: wikipedia
( Note to self: Firefox sometimes won't accept to drop links into its toolbar if they contain too many whitespace. Adding them via right mouse button is possible anyways. )