すいません、DraftPad用BlogQuoteがバグってました

DraftPad用BlogQuoteに3つのモードを付けてみました
自作アシストの中では二番目によく使っている。ブログを紹介するリンクプレート。上のようにサムネがあってタイトルがあって内容の引用が付くタイプです。今までは、キーワードをGoogle検索するモードしかあり...
3つのモードがあるタイプの、変な文字処理を残したまま載せてました。正しいのは下記のアシストです。入れ替えてお使いください。

draftpad://self/web?source=<meta name=viewport content=initial-scale=1><title>Wait...</title><script>function main(x){u=x.current;if(u){open((u.match(/^http/))? u:%22https://www.google.com/search?q=%22+u)}else{s=%22<body style=white-space:pre;word-wrap:break-word;>%22+x.whole+%22</body>%22;document.write(s);draftpad.title(%22BlogQuote%22)}}location=%22draftpad:///webdelegate?load=main%26unloadconfirming=true%26unloadconfirmtitle=リンクを作成しますか?%26unloadconfirmdefault=はい%26unloadconfirmclose=いいえ%26unload=function(){location=\"draftpad:///webdelegate?load=f\";f=function(x){text=\"\"+document.getSelection();if(text==\"\"){p=document.getElementsByTagName(\"p\");for(key in p) text+=p[key].innerText};text=text.replace(/\\n/g,\"\").replace(/undefined/g,\"\").substr(0,100);link=x.STYLE.replace(/\\${posturl}/g,location.href).replace(/\\${posttitle}/g,document.title).replace(/\\${postselect}/g,text).replace(/\\${memo}/g,\"\");draftpad.replaceCurrent(link)}}%22</script>&whole=<@@>&current=<@>&STYLE=<div style=\"color:black;background:ivory;padding:15px;border-radius:5px;border:1px solid lightgray;\"><a href=${posturl} target=_blank style=color:darkblue;><img align=left src=http://capture.heartrails.com/200x130/?${posturl} style=\"border-radius:10px;margin:1px 15px 1px 1px;box-shadow:1px 2px 3px gray;\">${posttitle}</a><a href=http://b.hatena.ne.jp/entry/${posturl} target=_blank><img src=http://b.hatena.ne.jp/entry/image/${posturl}></a><br>${postselect}...<br style=clear:both;></div>

登録リンクはこちら→ http://tinyurl.com/ll7jkmz


英文の引用をするときに壊してしまう不具合がありました。というか、「undefined」の文字列を消すつもりが各文字を消してしまう失敗版を載せてしまってた。
使い方は従来通りです。すみませんでした。