Curly Quotes To Straight Quotes Meets Blog This Bookmarklet For Drupal

Using Drupal's prepopulate module, bookmarklets, like the one bundled with WordPress, to blog this are easy to craft. (Though at the time, it wasn't properly documented how to form prepopulated URIs when using grouped CCK fields.)

Anyhow, leaning heavily on Mark Pilgrim's Dumb Quotes code (found via a del.icio.us Dumbify Quote Bookmarklet), I came up with the following:

javascript:
u=location.href;
t=document.title;
s=""+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);
s=s.replace(/\"/g,"'");
s=s.replace(/\xa0/g,"");
s=s.replace(/\xa9/g,"\(c\)");
s=s.replace(/\xae/g,"\(r\)");
s=s.replace(/\xb7/g,"*");
s=s.replace(/\u2018/g,"'");
s=s.replace(/\u2019/g,"'");
s=s.replace(/\u201c/g,'"');
s=s.replace(/\u201d/g,'"');
s=s.replace(/\u8220/g,"'");
s=s.replace(/\u8221/g,"'");
s=s.replace(/\u2026/g,"...");
s=s.replace(/\u2002/g,"");
s=s.replace(/\u2003/g,"");
s=s.replace(/\u2009/g,"");
s=s.replace(/\u2012/g,"--");
s=s.replace(/\u2013/g,"--");
s=s.replace(/\u2014/g,"--");
s=s.replace(/\u2015/g,"--");
s=s.replace(/\u2122/g,"\(tm\)");
void(window.open(%22http://brianpuccio.net/node/add/excerpt?edit[group_external_content][field_external_title][0][value]=%22+encodeURIComponent(t)+'&edit[group_external_content][field_external_content][0][value]='+encodeURIComponent(s)+'&edit[group_external_content][field_external_link][0][value]='+encodeURIComponent(u),'_blank','width=1024,height=500,status=yes,location=yes,resizable=yes,scrollbars=yes'));

Modify as needed for your personal site.