The following bookmarklet worked fine with Drupal 4.x as a means to blog while you surf by highlighting a passage and then clicking this code linked to your browser menu; it would open a box for comments, then post the highlit text as a blockquote and label the blog posting title and fill out the initial body. In Drupal 5.1, it just opens a blank form. Is there some way to change the bookmarklet to match Drupal 5.1, or is there an alternative and preferred way to do this?
javascript:h='sbp.teledyn.com';u=document.location.href;t=document.title;void(C=prompt('Comments:',''));s=C+'\n\n<blockquote><cite class=%22blog-source%22>'+window.getSelection()+'</cite>\n\n';ps=escape('<span class=%22cite-source%22>[ via ')+escape('<a href=%22'+u+'%22>')+escape(t)+escape('</a> ]</i></span></blockquote>'); void(window.open(%22http://%22+h+%22/node/add/blog?edit[title]=%22+escape(t)+'&edit[body]='+escape(s)+ps,'_blank','width=710,height=500,status=yes,resizable=yes,scrollbars=yes'));
I notice from the search results on 'Bookmarklet' that a lot of people had been using this edit[] GET parm hack to implement quick-posting -- I believe the originator of the hack was Julian Bond over at Ecademy.com -- so I expect there will be a pretty high interest in an updated hack that will work with the new codebase.
Comments
Comment #1
teledyn commentedThis appears to have been decided in http://www.drupal.org/node/27155
the workaround is to enable the new prepopulate.module