Drupal Bookmarklet
19-08-2006 11:49 PM by Eugene WareYou can add a bookmark to your toolbar that will allow you to blog post the current window. You need to remove all the line breaks to put this code on one line. Also, you need to change www.digitalvideosecrets.com to the url of your drupal installation
javascript:u=document.location.href; t=document.title.replace(/\|/g,'::');
s='<blockquote>'+window.getSelection()+'</blockquote>';
pre='<em>From <a target="_blank" href="'+escape(u)+'">'+escape(t) +
escape('</a>:</em><br /> '); r />
w = (window.open('http://www.digitalvideosecrets.com/node/add/blog?edit[title]='
+escape('Link: '+t)+'&edit[body]='+pre+escape(s)+
escape('<a href="'+u+'" target="_blank">Link</a>'),'_blank','width=710,height=500,
status=yes,resizable=yes,scrollbars=yes'));
void(window.setTimeout(function(){w.focus()},300));

All Comments