hEL
Create EmbedLink for Hatena Blog

Script key: Create EmbedLink for Hatena Blog

Posted by @pironpan

Install

Details

Label hEL
Voice Over Create EmbedLink for Hatena Blog
Script
// Please select or copy URL

var clip = getClipboard();
var sel = getSelectedText();
if (!sel || sel.length == 0) {
  var URL = clip;
}
else {
  var URL = sel;
}
var hatenaTitleLink = "[" + URL + ":embed]";
var selRange = getSelectedRange();
setSelectedText(hatenaTitleLink);
setSelectedRange(selRange[0]+hatenaTitleLink.length,0);

Advanced

Keyboard shortcut None
Hide key Yes

Discussion

comments powered by Disqus