Action Directory / ShareHtml
InstallMake ShareHtml Action
Shared by saita_ryouhei
Script
//Variables "fmt" customized suit
fmt='<div style="margin:10px 10px 10px 10px;padding:17px 10px 12px 10px;min-height:160px;"><a href="${nondurl}" target="_blank"><img style="max-width:100%;margin: 0px 25px 0px 25px;padding: 0px;border:0;" align="left" src="http://capture.heartrails.com/270x170/shadow?${posturl}" alt="" width="270" height="170" /></a><a style="color:#0070C5;" href="${nondurl}" target="_blank">${posttitle}</a><br style="clear:both;" /></div>'
//"blogurl", "blogtitle" customized
blogurl="http://stryh.com";
blogtitle=" | stryhの日記 ~stryh/changelog";
url=webBrowser.getURL();
title=webBrowser.getTitle();
nonurl=url.replace(blogurl,"");
title=title.replace(blogtitle,"");
text=fmt.replace(/\${posturl}/g,url).replace(/\${nondurl}/g,nonurl).replace(/\${posttitle}/g,title);
editor.replaceSelection(text);