<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web scratch &#187; Tombloo</title>
	<atom:link href="http://efcl.info/category/firefox/tombloo-firefox/feed/" rel="self" type="application/rss+xml" />
	<link>http://efcl.info</link>
	<description>フリーソフトやFirefoxなどについて、web全般なサイト</description>
	<lastBuildDate>Thu, 02 Sep 2010 13:23:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Tomblooのポスト先にはてなダイアリーを追加するパッチ</title>
		<link>http://efcl.info/2010/0825/res1909/</link>
		<comments>http://efcl.info/2010/0825/res1909/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 15:55:59 +0000</pubDate>
		<dc:creator>azu</dc:creator>
				<category><![CDATA[Tombloo]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[はてな]]></category>

		<guid isPermaLink="false">http://efcl.info/?p=1909</guid>
		<description><![CDATA[以前からずっと書いて修正していたパッチですが、Tombloo 0.4.11(自動更新はこないので手動でアップデートしましょう)で、はてなダイアリーのユーザー情報取得方法がスクレイピングからhttp://b.hatena. [...]]]></description>
			<content:encoded><![CDATA[<p>以前からずっと<span style="text-decoration: line-through;">書いて</span>修正していたパッチですが、<a href="http://github.com/to/tombloo/downloads">Tombloo </a>0.4.11(自動更新はこないので手動でアップデートしましょう)で、<br />はてなダイアリーのユーザー情報取得方法がスクレイピングから<a title="http://b.hatena.ne.jp/my.name" href="http://b.hatena.ne.jp/my.name">http://b.hatena.ne.jp/my.name</a>のAPIを利用したものに変わったので、<br />はてなダイアリーへのポストができるように修正しました。</p>
<p><span id="more-1909"></span></p>
<p><script src="http://gist.github.com/547176.js?file=model.HatenaDairy.js"></script></p>
<p>rawのリンク上で右クリック、[Tombloo]-[Tomblooパッチのインストール]で簡単インストールできます。<br /><a href="http://efcl.info/wp-content/uploads/2010/08/ss-2010-08-25-1.png"><img class="alignnone size-medium wp-image-1910" title="ss-2010-08-25-1" src="http://efcl.info/wp-content/uploads/2010/08/ss-2010-08-25-1-300x141.png" alt="" width="300" height="141" /></a><br />インストールすると利用サービスにはてなダイアリーが増えていると思います。<br />はてなブックマークと同じくはてなにログインしてから使用します。</p>
<p>確かその場編集モード を使ってるとポストできないらしいので、ホントはAtomAPIでやった方がよいらしい<br />残骸<a href="http://gist.github.com/354700">gist: 354700 &#8211; GitHub</a></p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 83px; width: 1px; height: 1px; overflow: hidden;">&lt;a href=&#8221;http://gist.github.com/354700&#8243;&gt;gist: 354700 &#8211; GitHub&lt;/a&gt;</div>
]]></content:encoded>
			<wfw:commentRss>http://efcl.info/2010/0825/res1909/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>今見てるサイトの短縮URLをクリップボードにコピーするTomblooパッチ</title>
		<link>http://efcl.info/2009/0831/res1276/</link>
		<comments>http://efcl.info/2009/0831/res1276/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 12:41:52 +0000</pubDate>
		<dc:creator>azu</dc:creator>
				<category><![CDATA[Tombloo]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[クリップボード]]></category>

		<guid isPermaLink="false">http://efcl.info/?p=1276</guid>
		<description><![CDATA[Tomblooのパッチとして動作するのでTomblooをインストールしている人用です。 今見てるサイトの短縮URLを一発でクリップボードにコピーできます。 

action.copyShortLink.jsis.gd版
 [...]]]></description>
			<content:encoded><![CDATA[<p>Tomblooのパッチとして動作するので<a href="http://wiki.github.com/to/tombloo">Tombloo</a>をインストールしている人用です。<br /> 今見てるサイトの短縮URLを一発でクリップボードにコピーできます。<br /> <a href="http://efcl.info/wp-content/uploads/sshot-2009-08-29-17-43-16.png"><img class="alignnone size-medium wp-image-1277" title="sshot-2009-08-29-[17-43-16]" src="http://efcl.info/wp-content/uploads/sshot-2009-08-29-17-43-16-300x109.png" alt="sshot-2009-08-29-[17-43-16]" width="300" height="109" /></a></p>
<ul>
<li><a href="http://gist.github.com/raw/177432/dbef848e7adc0e232705e790bde22dc924c59a50/action.copyShortLink.js">action.copyShortLink.js</a><br />is.gd版</li>
<li><a href="http://gist.github.com/raw/415348/84a91d4fc1b518a2094d848e25154edc0c2df6ff/action.copybitlyLink.js">action.copybitlyLink.js</a><br />追加:bit.ly版</li>
</ul>
<div><span style="text-decoration: underline;">上のリンク上で右クリック、[Tombloo]-[Tomblooパッチのインストール]で簡単インストール</span></div>
<p>インストールするとTomblooのコンテキストメニューにMake Short Linkが追加されてるので、<br /> それをクリックするとクリップボードに短縮URLがコピーされます。</p>
<h3>Tomblooのメモ</h3>
<p>Tomblooのscriptフォルダを毎回開くのが面倒だったので、一発で開くスクリプト</p>
<div id="attachment_1288" class="wp-caption alignnone" style="width: 310px"><a href="http://efcl.info/wp-content/uploads/sshot-2009-08-31-21-37-47.png"><img class="size-medium wp-image-1288" title="sshot-2009-08-31-[21-37-47]" src="http://efcl.info/wp-content/uploads/sshot-2009-08-31-21-37-47-300x96.png" alt="ツールのところのTomblooに追加される" width="300" height="96" /></a><p class="wp-caption-text">ツールのところのTomblooに追加される</p></div>
<p><br class="spacer_" /></p>
<ul>
<li><a href="http://gist.github.com/raw/178438/8344b6f8b50bbdc22ff2b49a01539c0faa957e6c/action.openScriptFolder.js">action.openScriptFolder.js</a></li>
</ul>
<p>firebugを呼ぶにはlog()で大丈夫だった。</p>
<p>クリップボードにコピーするには</p>
<pre>ClipboardHelper.copyString("コピー文字列");</pre>
<p>みたいな感じで簡単に使える。<br /> Tomblooには色んなヘルパー関数が用意されてるっぽいけど、どういうのがあるのかはソースを読む必要がありそう。</p>
<p>HTMLとしてコピーするものがなかったので適当に作成</p>
<pre class="brush:javascript;">// HTMLとしてstrをコピーする
// https://developer.mozilla.org/en/Using_the_Clipboard
function copyHTML(str) {
    var textHtml = str;
    // firebug("log" , textHtml);
    var htmlstring = Components.classes&#91;"@mozilla.org/supports-string;1"&#93;.
                     createInstance(Components.interfaces.nsISupportsString);
    if (!htmlstring) return false; // couldn't get string obj
    htmlstring.data = textHtml;
    var trans = Components.classes&#91;"@mozilla.org/widget/transferable;1"&#93;.
                           createInstance(Components.interfaces.nsITransferable);
    if (!trans) return false; //no transferable widget found
    trans.addDataFlavor("text/html");
    trans.setTransferData("text/html", htmlstring, textHtml.length);
    // copy the transferable widget!

    var clipboard = Components.classes&#91;"@mozilla.org/widget/clipboard;1"&#93;.
                           getService(Components.interfaces.nsIClipboard);
    if (!clipboard) return false; // couldn't get the clipboard

    clipboard.setData(trans, null, Components.interfaces.nsIClipboard.kGlobalClipboard);
    return true;
}
</pre>
<p>追記</p>
<p>短縮URLを取得するshortenUrls関数とかがあった。</p>
<dl>
<dt><strong>gist: 415348 &#8211; Tomblooパッチ- GitHub</strong></dt>
<dd><a href="http://gist.github.com/415348" title="gist: 415348 - Tomblooパッチ- GitHub">http://gist.github.com/415348</a></dd>
</dl>
]]></content:encoded>
			<wfw:commentRss>http://efcl.info/2009/0831/res1276/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TomblooからTwitterにポストするときに、頭に&#8221;見てる:&#8221;と付けるパッチ</title>
		<link>http://efcl.info/2009/0429/res648/</link>
		<comments>http://efcl.info/2009/0429/res648/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 12:44:26 +0000</pubDate>
		<dc:creator>azu</dc:creator>
				<category><![CDATA[Tombloo]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://efcl.info/?p=648</guid>
		<description><![CDATA[TomblooからTwitterにポストするときに、何もコメントを書いていない時に
 見てる: &#8220;引用文&#8221; Web scratch http://efcl.info/ 
 みたいな感じに頭に文字列 [...]]]></description>
			<content:encoded><![CDATA[<p>TomblooからTwitterにポストするときに、何もコメントを書いていない時に<strong><br />
 見てる: &#8220;引用文&#8221; Web scratch http://efcl.info/ </strong><br />
 みたいな感じに頭に文字列を挿入するscriptパッチです。<br />
 コメントありの場合は<br />
 <strong>コメント &#8220;引用文&#8221; Web scratch http://efcl.info/ </strong><br />
 という形になります。(引用文はQuote時のみ)</p>
<p>追記: 0.4.6からに合わせた形式に合わせました。</p>
<ul>
<li><a href="http://gist.github.com/raw/159168/019bb4dc7032d2eb53309ee65a81878ade41ba86/Twitter_pre.js">Twitter_pre.js</a></li>
</ul>
<p>上のリンク上で右クリック、[Tombloo]-[Tomblooパッチのインストール]で簡単インストール<br />
 コメントが何もないときだけ、先頭に見てる:という文字列を加えるようにしました。</p>
<pre>addBefore(Twitter, 'post', function(ps){
	var pre_str = "見てる:";
	ps.item = ps.item || "";
	ps.description = ps.description ? ps.description : pre_str.convertToUnicode();
});
</pre>
<p>
 直接、付け加える日本語を書けるようになりました。 Tombloo内に定義されてたconvertToUnicode()というのを使えば自動的にUTF-8にエンコードしてくれるみたいです。(引数で他の文字コードも指定可)</p>
<p><a href="http://d.hatena.ne.jp/toby/20100220/quoted_title_of_tombloo_patch_for_posting_twitter">Firefox拡張のTomblooからTwitterにポストするときに、タイトルにカギ括弧を付け見やすくするパッチ &#8211; 技術文化遺産復興日記</a></p>
<p>の方が見やすいかもね。</p>
<ul>
<li> <span style="text-decoration: line-through;"><a href="http://gist.github.com/raw/103731/112c6111098afd69482c1e5c2b12a396d56bb516/Twitter_pre.js">Twitter_pre.js</a></span></li>
</ul>
<p><span style="text-decoration: line-through;">上記を、{ProfD}/<span class="highlight"><span class="ColorResultsClass">tombloo</span></span>/<span class="keyword">script</span>に保存し、<span class="keyword">ブラウザ</span>を<span class="keyword">再起動</span>すると<span class="keyword"><span class="highlight"><span class="ColorResultsClass">パッチ</span></span></span>があたります。<br />
 (場所の詳細は<a href="http://support.mozilla.com/ja/kb/%E3%83%97%E3%83%AD%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB">プロファイル</a>を参照するといいかも)</span></p>
<pre class="brush:javascript;">&#60;span style="text-decoration: line-through;"&#62;addBefore(Twitter, 'post', function(ps){
	ps.item = ps.item || "";
	ps.item = joinText(&#91;"頭に付ける文字列",ps.item&#93;,' ', true);
});
&#60;/span&#62;</pre>
<p><span style="text-decoration: line-through;">UTF-8で保存すれば、日本語で大丈夫だと思ったのに自分の環境では文字化けしたので、<br />
 <a href="http://piro.sakura.ne.jp/latest/entries/mozilla/xul/2005-09-28_unicode-escape.files/unicode.xul">http://piro.sakura.ne.jp/latest/entries/mozilla/xul/2005-09-28_unicode-escape.files/unicode.xul</a><br />
 を使ってエスケープした物を入れるとよいかも。</span></p>
]]></content:encoded>
			<wfw:commentRss>http://efcl.info/2009/0429/res648/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  efcl.info/category/firefox/tombloo-firefox/feed/ ) in 0.57469 seconds, on Sep 3rd, 2010 at 5:37 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Sep 3rd, 2010 at 6:37 am UTC -->