« NIST on Security Log Management | Main | Security Risks of Airline Passenger Data »

Bookmarklet to create Movable Type entries

One thing I badly miss since my migration to Movable Type is the lack of compatibility with Google Toolbar's functionalities that facilitate the posting of an article in a single click (e.g. the Send To feature).

I searched the web for Google Toolbar Custom buttons, Firefox extensions, etc. but could not find anything. It looks like Google Toolbar's API is only intended to create custom searches, and a quick look to the documentation to craft Firefox extensions gave me a headache.

Hence, I quickly hacked a bookmarklet to emulate Google Toolbar's Send To feature (inspiration taken here). It works fine with Opera and Firefox, except that window focus does not work nicely in Firefox.

To work with your Movable Type blog, you will need to edit the path to mt.cgi and the number of your blog_id (see bold sections in the HTML code below).

Update 2006/5/7: I figured I could have used MT's built-in Quickpost bookmarklet, but it is not compatible with the EnhancedEntryEditing plugin I use to edit my posts.

<a href="javascript:var newwindow; newwindow=window.open('http://path/to/mt.cgi?__mode=view&_type=entry&blog_id=1234567890&title='+encodeURIComponent(document.title)+'&text=<a href=%22'+encodeURIComponent(location.href)+'%22>'+encodeURIComponent(document.title)+'</a>: <blockquote>%22'+encodeURIComponent(document.getSelection())+'%22</blockquote>','name','height=600,width=800,left=112,top=84,resizable=yes,scrollbars=yes'); if (window.focus) {newwindow.focus()};" title="MT this!" onclick="window.alert('Drag this link to your bookmarks toolbar, or right-click it and choose Bookmark This Link...');return false;" class="bookmarklet2">MT this!</a>

The easiest is to drag this link: MT this! up to your Bookmarks Toolbar, and then right-click on it to edit its properties.

About

This page contains a single entry from the blog posted on May 5, 2006 8:29 PM.

The previous post in this blog was NIST on Security Log Management.

The next post in this blog is Security Risks of Airline Passenger Data.

Many more can be found on the main index page or by looking through the archives.