<?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; Greasemonkey</title>
	<atom:link href="http://efcl.info/category/firefox/greasemonkey/feed/" rel="self" type="application/rss+xml" />
	<link>http://efcl.info</link>
	<description>フリーソフトやFirefoxなどについて、web全般なサイト</description>
	<lastBuildDate>Wed, 10 Mar 2010 05:35:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>twilogに日付毎のページへ飛ぶリンクをつけるGreasemonkey</title>
		<link>http://efcl.info/2010/0310/res1595/</link>
		<comments>http://efcl.info/2010/0310/res1595/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 05:35:41 +0000</pubDate>
		<dc:creator>azu</dc:creator>
				<category><![CDATA[Greasemonkey]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://efcl.info/?p=1595</guid>
		<description><![CDATA[twilogの日付の隣あたりに日付毎のページへ飛ぶリンクをつけるGreasemonkeyです。
 要は下のスクリーンショットみたいに日付ページへ飛ぶリンクをつけるだけです。


twilog date linker

カ [...]]]></description>
			<content:encoded><![CDATA[<p>twilogの日付の隣あたりに日付毎のページへ飛ぶリンクをつけるGreasemonkeyです。<br />
 要は下のスクリーンショットみたいに日付ページへ飛ぶリンクをつけるだけです。</p>
<p><a href="http://efcl.info/wp-content/uploads/2010/03/sshot-2010-03-07-1.png"><img class="aligncenter size-medium wp-image-1596" title="sshot-2010-03-07-1" src="http://efcl.info/wp-content/uploads/2010/03/sshot-2010-03-07-1-299x35.png" alt="" width="299" height="35" /></a></p>
<ul>
<li><a href="http://userscripts.org/scripts/show/70683">twilog date linker</a></li>
</ul>
<p>カッとなってつけたけどデフォルトでないのが意外。</p>
<dl>
<dt><strong>twilog date linker for Greasemonkey</strong></dt>
<dd><a title="twilog date linker for Greasemonkey" href="http://userscripts.org/scripts/show/70683">http://userscripts.org/scripts/show/70683</a></dd>
</dl>
]]></content:encoded>
			<wfw:commentRss>http://efcl.info/2010/0310/res1595/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitterへ見ているサイトを投稿するGreasemonkey「Post Now browsing to Twitter」更新</title>
		<link>http://efcl.info/2010/0221/res1569/</link>
		<comments>http://efcl.info/2010/0221/res1569/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 14:33:45 +0000</pubDate>
		<dc:creator>azu</dc:creator>
				<category><![CDATA[Greasemonkey]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[ショートカット]]></category>

		<guid isPermaLink="false">http://efcl.info/?p=1569</guid>
		<description><![CDATA[今見ているサイトのURLをコメントとともにTwitterに投稿するGreasemonkeyであるPost Now browsing to Twitterを更新したので更新内容について。 どんな感じのものかは以前の記事を見 [...]]]></description>
			<content:encoded><![CDATA[<p>今見ているサイトのURLをコメントとともにTwitterに投稿するGreasemonkeyである<a href="http://userscripts.org/scripts/show/46441">Post Now browsing to Twitter</a>を更新したので更新内容について。<br /> どんな感じのものかは以前の記事を見てください。</p>
<dl>
<dt><strong>今見ているサイトをTwitterに投稿する「Post Now browsing to Twitter」 | Web scratch</strong></dt>
<dd><a title="今見ているサイトをTwitterに投稿する「Post Now browsing to Twitter」 | Web scratch" href="http://efcl.info/2009/0929/res1369/">http://efcl.info/2009/0929/res1369/</a></dd>
</dl>
<h3 id="ed381c07a-2">更新点</h3>
<ul>
<li>入力UIの変更</li>
</ul>
<p><a href="http://efcl.info/wp-content/uploads/2010/02/sshot-2010-02-21-1.png"><img class="size-medium wp-image-1570 alignnone" title="sshot-2010-02-21-1" src="http://efcl.info/wp-content/uploads/2010/02/sshot-2010-02-21-1-300x58.png" alt="" width="300" height="58" /></a></p>
<p>今まではコメントの入力を通常のプロンプトで行っていましたが、入力用のテキストエリアをショートカットを押した際に表示する用にしました。<br /> コメントするUIとポストした際の並びに統一感がでたのと、コメントの入力に対してリアルタイムで合計の文字数をカウントアップします。(140文字をオーバーしても自動でタイトルを切って140文字に納めるのでカウントアップにしてます。)<br /><strong>コメント入力後(未記入でもOK)Ctrl+Enterを押すとTwitterにポストします。</strong><br /> <strong>コメント入力をキャンセルしたい場合はESCキーを押すことでキャンセルできます。</strong></p>
<p>また、promptの時とは違いテキストエリアで入力するので、<a href="http://e-words.jp/w/E383A2E383BCE38380E383ABE38380E382A4E382A2E383ADE382B0.html">モーダルダイアログ</a>のように入力欄が表示されているとき、ページ上のテキストを選択できないということがなくなります。</p>
<p>後は細かい修正。<br /> インストールは<a href="http://userscripts.org/scripts/show/46441">こちら</a>から</p>
<dl>
<dt><strong>Post Now browsing to Twitter</strong></dt>
<dd><a title="Post Now browsing to Twitter" href="http://userscripts.org/scripts/show/46441">http://userscripts.org/scripts/show/46441</a></dd>
</dl>
]]></content:encoded>
			<wfw:commentRss>http://efcl.info/2010/0221/res1569/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ニコニコ動画のマイリストページに共起タグクラウドを表示するGreasemonkey</title>
		<link>http://efcl.info/2010/0113/res1531/</link>
		<comments>http://efcl.info/2010/0113/res1531/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 16:32:10 +0000</pubDate>
		<dc:creator>azu</dc:creator>
				<category><![CDATA[Greasemonkey]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[ニコニコ動画]]></category>

		<guid isPermaLink="false">http://efcl.info/?p=1531</guid>
		<description><![CDATA[
ニコニコ動画の検索ページに共起タグクラウドを表示するChrome用ユーザスクリプト作ってみた &#8211; あたご型護衛艦日記
http://d.hatena.ne.jp/aTaGo/20100112/1263285 [...]]]></description>
			<content:encoded><![CDATA[<dl>
<dt><strong>ニコニコ動画の検索ページに共起タグクラウドを表示するChrome用ユーザスクリプト作ってみた &#8211; あたご型護衛艦日記</strong></dt>
<dd><a title="ニコニコ動画の検索ページに共起タグクラウドを表示するChrome用ユーザスクリプト作ってみた - あたご型護衛艦日記" href="http://d.hatena.ne.jp/aTaGo/20100112/1263285275">http://d.hatena.ne.jp/aTaGo/20100112/1263285275</a></dd>
</dl>
<p>という便利なものがあったので公開マイリストページにもタグクラウドを表示するGreasemonkeyを書いてみた。</p>
<p><a href="http://efcl.info/wp-content/uploads/2010/01/sshot-2010-01-13-1.png"><img class="alignnone size-medium wp-image-1533" title="sshot-2010-01-13-" src="http://efcl.info/wp-content/uploads/2010/01/sshot-2010-01-13-1-300x129.png" alt="" width="300" height="129" /></a></p>
<ul>
<li><a href="http://gist.github.com/raw/275310/b111171970596648f75432d0febf16e837a6eb0c/Mylist%20TagCloud.user.js">Mylist TagCloud</a></li>
</ul>
<pre class="brush:javascript;">// ==UserScript==
// @name           Mylist TagCloud
// @namespace      http://efcl.info/
// @include        http://www.nicovideo.jp/mylist/*
// ==/UserScript==
evalInPage(function(){

	var as = my.currentItems
	var ids = "";
	if(as.length &#62; 1){
		insertcallback();
		for(var i = 0; i &#60; as.length; i++){
			var smid = as&#91;i&#93;.item_data.video_id;
			ids += smid + "+";
		}
		//console.log(ids);
		var uri = "http://nicotag.sakura.ne.jp/getcollocationtag.php?smid=" + ids + "&amp;rand=" + Math.floor(Math.random()*1000);;
		calljsonp(uri);
	}

function calljsonp(uri){
	var scr = document.createElement('script');
	scr.type = "text/javascript";
	scr.src = uri;
	document.body.appendChild(scr);
}

function insertcallback(){
	var callscr = document.createElement('script');
	callscr.type = "text/javascript";
	callscr.text = ''
			+ 'function callback(val){'
			+ 'var footer = document.querySelectorAll("div#SYS_box_mylist_body");'
			+ 'var foot = footer&#91;0&#93;;'
			+ 'var div = document.createElement("div");'
			+ 'div.innerHTML = val;'
			+ 'foot.parentNode.insertBefore(div, foot);'
			+ '}';
	document.body.appendChild(callscr);
}
})
function evalInPage(fun) {
  location.href = "javascript:void (" + fun + ")()";
}
</pre>
<p>JSONPでしか取得できないような気がしたので、ほぼそのままな感じ。<br />
 確かめてないけどChromeでも動くかも。</p>
]]></content:encoded>
			<wfw:commentRss>http://efcl.info/2010/0113/res1531/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Googleの検索結果画面にTwitter検索の結果も表示するGreasemonkey(焼き直し)</title>
		<link>http://efcl.info/2010/0103/res1522/</link>
		<comments>http://efcl.info/2010/0103/res1522/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 10:27:28 +0000</pubDate>
		<dc:creator>azu</dc:creator>
				<category><![CDATA[Greasemonkey]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://efcl.info/?p=1522</guid>
		<description><![CDATA[Googleの検索結果画面にTwitter検索の結果も表示するGreasemonkeyスクリプトです。
以前、Twitter Search Results on Google for Greasemonkey [ htt [...]]]></description>
			<content:encoded><![CDATA[<p>Googleの検索結果画面に<a href="http://pcod.no-ip.org/yats/">Twitter検索</a>の結果も表示するGreasemonkeyスクリプトです。</p>
<p>以前、Twitter Search Results on Google for Greasemonkey [ http://userscripts.org/scripts/show/43451 ]を元に書いたものの焼き直しです。</p>
<dl>
<dt><strong>Googleの検索結果にtwitter検索の結果を同時に表示するGreasemonkey | Web scratch</strong></dt>
<dd>http://efcl.info/2009/0826/res1266/</dd>
<dd>
 </dd>
</dl>
<p>また一から書き直してみた。<br />
 機能はほとんど変わってません。<br />
 <a href="http://efcl.info/wp-content/uploads/2010/01/sshot-2010-01-03-1.png"><img class="alignnone size-medium wp-image-1523" title="sshot-2010-01-03-1" src="http://efcl.info/wp-content/uploads/2010/01/sshot-2010-01-03-1-300x120.png" alt="" width="300" height="120" /></a></p>
<p>少し似た目が変わったのと、その場でTwitter検索の結果を継ぎ足せるようにしたぐらいです。<br />
 インストールは<a href="http://userscripts.org/scripts/show/65540">こちら</a>から</p>
<dl>
<dt><strong>Twitter search(ja) result on Google for Greasemonkey</strong></dt>
<dd><a title="Twitter search(ja) result on Google for Greasemonkey" href="http://userscripts.org/scripts/show/65540">http://userscripts.org/scripts/show/65540</a></dd>
</dl>
]]></content:encoded>
			<wfw:commentRss>http://efcl.info/2010/0103/res1522/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Greasemonkeyでサイト既存の関数を上書きする</title>
		<link>http://efcl.info/2009/1122/res1483/</link>
		<comments>http://efcl.info/2009/1122/res1483/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 05:11:09 +0000</pubDate>
		<dc:creator>azu</dc:creator>
				<category><![CDATA[Greasemonkey]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[ブックマークレット]]></category>

		<guid isPermaLink="false">http://efcl.info/?p=1483</guid>
		<description><![CDATA[サイトに新たに機能を付け加えるのではなくて、元々サイトに存在してる関数を少しだけいじってやった方が簡単な場合があります。
 そういうときにGreasemonkeyからサイトに元々ある既存関数を上書きする方法です。

Sm [...]]]></description>
			<content:encoded><![CDATA[<p>サイトに新たに機能を付け加えるのではなくて、元々サイトに存在してる関数を少しだけいじってやった方が簡単な場合があります。<br />
 そういうときにGreasemonkeyからサイトに元々ある既存関数を上書きする方法です。</p>
<dl>
<dt><strong>SmartLDR更新 &#8211; 素人がプログラミングを勉強するブログ</strong></dt>
<dd><a title="SmartLDR更新 - 素人がプログラミングを勉強するブログ" href="http://d.hatena.ne.jp/javascripter/20090324/1237903880">http://d.hatena.ne.jp/javascripter/20090324/1237903880</a></dd>
</dl>
<p>ここで紹介されているlocation.hrefとjavascript:プロトコルを使ったハックを使うと比較的簡単に関数の上書きができます。<br />
 例えばmyFuncという関数を上書きしたい場合は以下のようにjavascript:プロトコルからmyFuncを再定義すると上書きができます。</p>
<pre class="brush:javascript;">function evalInPage(fun) {
  location.href = "javascript:void (" + fun + ")()";
}

evalInPage(function () {
myFunc = function(){
	上書きする内容
}
});
</pre>
<p>location.hrefとjavascript:プロトコルを使って実行するとXPCNativeWrapperの外側でスクリプトを評価できる(Greasemonkey内の評価ではなくなる)ので、unsafeWindowを使わなくても既存の関数に触ることができます。<br />
 逆にGreasemonkey内の評価ではなくなるので、GM_関数は使えなくなります。(感覚的にはブックマークレットを実行するのと同じ)<br />
 これを同期的に扱いたいなら<span>JSDeferredを使って下のように組み込むといいらしい。</span></p>
<dl>
<dt><strong>unsafeExec on JSDeferred &#8211; 枕を欹てて聴く</strong></dt>
<dd><a title="unsafeExec on JSDeferred - 枕を欹てて聴く" href="http://d.hatena.ne.jp/Constellation/20090326/1238073714">http://d.hatena.ne.jp/Constellation/20090326/1238073714</a></dd>
</dl>
<p><span id="text5937761445">9washのRTフォーマットを一般的なものに変更するのにこの方法を使ってみた。<br />
 </span><a href="http://tw.9wash.com/about">9wash</a>はブラウザから利用できるWeb twitterクライアントです。<br />
 軽くて使い易いので、いいクライアントだと思いますが、RTのフォーマットが[RT:数字id @ユーザー名]みたいになっていて、使いにくかったのでその部分の関数を上書きして、よく使われているようなRT @ユーザー名:の書式に変えるようにしてみました。</p>
<ul>
<li><a href="https://gist.github.com/5433e8b8b294215c7335">9wash RT format.user.js</a></li>
</ul>
<dl>
<dt><strong>9wash twitter clientについて</strong></dt>
<dd><a title="9wash twitter clientについて" href="http://tw.9wash.com/about">http://tw.9wash.com/about</a></dd>
</dl>
<p><br class="spacer_" /></p>
]]></content:encoded>
			<wfw:commentRss>http://efcl.info/2009/1122/res1483/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LDR all-in-one Hatena extensionを修正</title>
		<link>http://efcl.info/2009/1113/res1459/</link>
		<comments>http://efcl.info/2009/1113/res1459/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 10:20:48 +0000</pubDate>
		<dc:creator>azu</dc:creator>
				<category><![CDATA[Greasemonkey]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[LDR]]></category>
		<category><![CDATA[はてな]]></category>

		<guid isPermaLink="false">http://efcl.info/?p=1459</guid>
		<description><![CDATA[
Fastladder まわり ( はてなまわり機能追加 ) &#8211; KBDAHOLIC &#8211; やぬすさんとこ
http://d.hatena.ne.jp/janus_wel/20090111/1231 [...]]]></description>
			<content:encoded><![CDATA[<dl>
<dt><strong>Fastladder まわり ( はてなまわり機能追加 ) &#8211; KBDAHOLIC &#8211; やぬすさんとこ</strong></dt>
<dd><a title="Fastladder まわり ( はてなまわり機能追加 ) - KBDAHOLIC - やぬすさんとこ" href="http://d.hatena.ne.jp/janus_wel/20090111/1231678843">http://d.hatena.ne.jp/janus_wel/20090111/1231678843</a></dd>
</dl>
<p>LDR all-in-one Hatena extension.user.jsが動かなくなっていたため、勝手に修正しました。</p>
<ul>
<li><a href="http://gist.github.com/raw/233723/c862aefd83bdf70702c21db45e998b6d94a5590f/LDR%20all-in-one%20Hatena%20extension.user.js">LDR all-in-one Hatena extension.user.js</a></li>
</ul>
<p>はてなスター周りはばっさりカットしてしまった。<br />
 なので、基本的な機能ははてなブックマーク数とコメント表示をするGreasemonkeyというもの。</p>
<p>修正点</p>
<dl>
<dt><strong>Greasemonkeyではwindow.evalが使えない、eval.call(window, src) &#8211; はてなダイアリー &#8211; 無料で簡単。広告のないシンプルなブログをはじめよう！</strong></dt>
<dd><a title="Greasemonkeyではwindow.evalが使えない、eval.call(window, src) - はてなダイアリー - 無料で簡単。広告のないシンプルなブログをはじめよう！" href="http://d.hatena.ne.jp/brazil/20060821/1156164845">http://d.hatena.ne.jp/brazil/20060821/1156164845</a></dd>
</dl>
<p>JSONをパースするために使われていた上のテクニック部分がエラーを吐いて動いてなかったので、ネイティブJSONを使ってみました。(Firefox3.5～だったかな。)<br />
<a href="http://twitter.com/os0x/statuses/5677129089">sabdbox周りの変更が原因</a>らしいです。</p>
<dl>
<dt><strong>gist: 233723 &#8211; GitHub</strong></dt>
<dd><a title="gist: 233723 - GitHub" href="http://gist.github.com/233723">http://gist.github.com/233723</a></dd>
</dl>
]]></content:encoded>
			<wfw:commentRss>http://efcl.info/2009/1113/res1459/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GreasemonkeyからXMLRPCプロトコルでブログに投稿する</title>
		<link>http://efcl.info/2009/1103/res1416/</link>
		<comments>http://efcl.info/2009/1103/res1416/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 11:56:04 +0000</pubDate>
		<dc:creator>azu</dc:creator>
				<category><![CDATA[Greasemonkey]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://efcl.info/?p=1416</guid>
		<description><![CDATA[XML-RPCを使ってWordpressやMovable Typeなどのブログに投稿するGreasemonkeyの書き方みたいなものです。
 XMLRPCに対応したブログにどういうものがあるかは下のサイトによくまとまって [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://ja.wikipedia.org/wiki/XML-RPC">XML-RPC</a>を使ってWordpressやMovable Typeなどのブログに投稿するGreasemonkeyの書き方みたいなものです。<br />
 XMLRPCに対応したブログにどういうものがあるかは下のサイトによくまとまってます。(ちょっと古いですが)</p>
<dl>
<dt><strong>BlogWrite &#8211; Atom API, XML-RPC</strong></dt>
<dd><a title="BlogWrite - Atom API, XML-RPC　に対応した　ブログエディタ　Blog エディター Blog(ブログ)投稿クライアント　by Witha System Ltd." href="http://www.witha.jp/BlogWrite/bloglist.html">http://www.witha.jp/BlogWrite/bloglist.html</a></dd>
</dl>
<p>WordpressでしかテストしてませんがXMLRPCに対応してるブログなら動作すると思います。<br />
 今回は投稿機構みたいなものを書いただけなので、このスクリプトだけではあんまり意味はないと思います。</p>
<pre class="brush:javascript;">// ==UserScript==
// @name           XMLRPC poster
// @namespace      http://efcl.info/
// @include        http://*
// ==/UserScript==

/* 投稿先のメタ情報 */
var metaBlog = {
	"endPoint" : "ブログのエンドポイントURL",
	"blogid"   : "ブログのログインID",
	"username" : "投稿者名", //空だとblogidを使用
	"password" : "パスワード"
}

var XMLRPC = (function() { this.initialize.apply(this, arguments); });
XMLRPC.prototype = {
	/*
	 * @arg
		{
				"endPoint": "endPoint",
				"blogid"   : "blogid",
				"username" : "username",//空だとblogidを使用
				"password" : "password"
		}
	*/
	initialize : function(arg) { //引数は{}オブジェクト
		this.endPoint = arg.endPoint;
		this.blogid   = arg.blogid;
		this.username = (arg.username) ? arg.username : arg.blogid;
		this.password = arg.password;
	},
	/* *
	 * @title 記事タイトル
	 * @desc 記事内容
	 * @tags タグ(カンマ区切り)
	 * @callback 更新成功時のコールバック関数
	 */
	post : function (title, desc, tags, callback){
		var postURI = this.endPoint;
		this.tags = (tags.length == 0) ? "" : tags.join(",");
		var XMLbody = '&#60;?xml version="1.0"?&#62;\n';
		XMLbody += this.template(title, desc , this.tags);
		console.info(XMLbody);
		GM_xmlhttpRequest({
			method : "POST",
			headers : {
				'Content-type' : 'text/xml'
			},
			url : postURI,
			data : this.template(title, desc , tags),
			onload : callback,
		})
	},
  template : function (title, desc , tags){
    var repuest =  &#60;methodCall&#62;
                      &#60;methodName&#62;metaWeblog.newPost&#60;/methodName&#62;
                      &#60;params&#62;
                        &#60;param&#62;
                          &#60;value&#62;
                            &#60;string&#62;{this.blogid}&#60;/string&#62;
                          &#60;/value&#62;
                        &#60;/param&#62;
                        &#60;param&#62;
                          &#60;value&#62;
                            &#60;string&#62;{this.username}&#60;/string&#62;
                          &#60;/value&#62;
                        &#60;/param&#62;
                        &#60;param&#62;
                          &#60;value&#62;
                            &#60;string&#62;{this.password}&#60;/string&#62;
                          &#60;/value&#62;
                        &#60;/param&#62;
                        &#60;param&#62;
                          &#60;value&#62;
                            &#60;struct&#62;
                              &#60;member&#62;
                                &#60;name&#62;title&#60;/name&#62;
                                &#60;value&#62;
                                  &#60;string&#62;{title}&#60;/string&#62;
                                &#60;/value&#62;
                              &#60;/member&#62;
                              &#60;member&#62;
                                &#60;name&#62;description&#60;/name&#62;
                                &#60;value&#62;
                                  &#60;string&#62;{desc}&#60;/string&#62;
                                &#60;/value&#62;
                              &#60;/member&#62;
                              &#60;member&#62;
                                &#60;name&#62;mt_keywords&#60;/name&#62;
                                &#60;value&#62;
                                  &#60;string&#62;{tags}&#60;/string&#62;
                                &#60;/value&#62;
                              &#60;/member&#62;
                              &#60;member&#62;
                                &#60;name&#62;mt_allow_comments&#60;/name&#62;
                                &#60;value&#62;
                                  &#60;boolean&#62;1&#60;/boolean&#62;
                                &#60;/value&#62;
                              &#60;/member&#62;
                            &#60;/struct&#62;
                          &#60;/value&#62;
                        &#60;/param&#62;
                        &#60;param&#62;
                          &#60;value&#62;
                            &#60;boolean&#62;1&#60;/boolean&#62;
                          &#60;/value&#62;
                        &#60;/param&#62;
                      &#60;/params&#62;
                    &#60;/methodCall&#62;;
		return repuest.toString();
	}
}
/* init メタ情報を使って投稿先決める*/
var t = new XMLRPC(metaBlog);
t.post(
	"title",
	"description",
	&#91;"tag1","tag2"&#93;,
	function(res){//callback
		console.log(res);
	}
);
</pre>
<p>ブログのエンドポイントURLは各ブログによってまちまちですが、Wordpressだと<strong>http://<em><span style="text-decoration: underline;">Wordpressトップ</span></em>/xmlrpc.php<br />
 </strong>になります。</p>
<p>E4Xを使ってポストするXMLを作成していますが、先頭に&lt;?xml version=&#8221;1.0&#8243;?&gt;を入れるとなぜかエラーになったので、後で結合するようにしました。<br />
 後、<strong>XMLRPCを使ってWordpressにタグを指定</strong>できるのかを検索した時、下のようにできないというのが出てきましたが、<strong>mt_keywordsにタグを指定</strong>できます。<br />
 なので下の情報は古いか間違っています。</p>
<p><a href="http://q.hatena.ne.jp/1239170669">WordPressでXML-RPCを使った投稿で、記事にタグの指定はできるのでしょうか。できるようでしたらやり方を書いたページを教えてください。.. &#8211; 人力検索はてな</a></p>
<p>Wordpressでは,で区切る事でタグを複数指定できます。<br />
 カテゴリーは面倒だったので放置してます(誰か…)</p>
<p>記載したソースは自由に使用してください。<br />
 <a href="http://gist.github.com/224968">gist: 224968 &#8211; GitHub</a></p>
<p>参考</p>
<dl>
<dt><strong>肉少なめ | Item &#8211; Greasemonkeyでブログを更新</strong></dt>
<dd><a title="肉少なめ | Item - Greasemonkeyでブログを更新" href="http://niku.suku.name/item/591">http://niku.suku.name/item/591</a></dd>
</dl>
<dl>
<dt><strong>MovableType で使える XML-RPC API</strong></dt>
<dd><a title="MovableType で使える XML-RPC API" href="http://www.na.rim.or.jp/%7Etsupo/program/blogTool/mt_xmlRpc.html#w01">http://www.na.rim.or.jp/~tsupo/program/blogTool/mt_xmlRpc.html#w01</a></dd>
</dl>
<dl>
<dt><strong>XML-RPC経由の投稿 でタグを登録したい « Selflow WordPress</strong></dt>
<dd><a title="XML-RPC経由の投稿 でタグを登録したい « Selflow WordPress" href="http://www.selflow.com/?p=6">http://www.selflow.com/?p=6</a></dd>
</dl>
]]></content:encoded>
			<wfw:commentRss>http://efcl.info/2009/1103/res1416/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TwitpicのAltが文字化けしているのを修正するGreasemonkey</title>
		<link>http://efcl.info/2009/0930/res1378/</link>
		<comments>http://efcl.info/2009/0930/res1378/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 23:49:14 +0000</pubDate>
		<dc:creator>azu</dc:creator>
				<category><![CDATA[Greasemonkey]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[ポップアップ]]></category>
		<category><![CDATA[画像]]></category>

		<guid isPermaLink="false">http://efcl.info/?p=1378</guid>
		<description><![CDATA[TwitPicは便利なTwitter向け写真投稿サイトですが、写真のaltに日本語があるとaltの内容が文字化けしてしまいます。
fix twitpic altはその文字化けしたaltを修正するGreasemonkeyで [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://twitpic.com/">TwitPic</a>は便利なTwitter向け写真投稿サイトですが、写真のaltに日本語があるとaltの内容が文字化けしてしまいます。<br />
<a href="http://userscripts.org/scripts/show/58834">fix twitpic alt</a>はその文字化けしたaltを修正するGreasemonkeyです。</p>
<ul>
<li><a href="http://userscripts.org/scripts/show/58834">fix twitpic alt</a></li>
</ul>
<p><a href="http://efcl.info/wp-content/uploads/2009/09/ss-2009-09-30-08-46-21.png"><img class="alignnone size-medium wp-image-1379" title="ss-2009-09-30-08-46-21" src="http://efcl.info/wp-content/uploads/2009/09/ss-2009-09-30-08-46-21-300x161.png" alt="ss-2009-09-30-08-46-21" width="300" height="161" /></a></p>
<p>インストールすれば、画像にマウスオーバーしたとき文字化けが修正された文字列が表示されます。(Firefox標準だとポップアップはしなかったかも)</p>
]]></content:encoded>
			<wfw:commentRss>http://efcl.info/2009/0930/res1378/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>今見ているサイトをTwitterに投稿する「Post Now browsing to Twitter」</title>
		<link>http://efcl.info/2009/0929/res1369/</link>
		<comments>http://efcl.info/2009/0929/res1369/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 10:48:41 +0000</pubDate>
		<dc:creator>azu</dc:creator>
				<category><![CDATA[Greasemonkey]]></category>
		<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://efcl.info/?p=1369</guid>
		<description><![CDATA[Post Now browsing to Twitterは今見ているサイトをTwitterに投稿するGreasemonkeyです。
 「easy I&#8217;m reading now」などすでに同じようなGreas [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://userscripts.org/scripts/show/46441">Post Now browsing to Twitter</a>は今見ているサイトをTwitterに投稿するGreasemonkeyです。<br />
 <a href="http://twitter.g.hatena.ne.jp/Uchimata/20071008/1191837376">「easy I&#8217;m reading now」</a>などすでに同じようなGreasemonkeyがありますが、Post Now browsing to Twitterは<br />
 スクリプトをエディタでいじらなくても設定ができるのと、便利なオプションがあるのが特徴です。</p>
<ul>
<li><a href="http://userscripts.org/scripts/show/46441">Post Now browsing to Twitter</a></li>
</ul>
<p>インストールして、<strong>ステータスバーのGreasemonkeyアイコンを右クリック             →<br />
 ユーザースクリプトコマンド→Post Now browsing to Twitter Settingから設定ができます。<br />
 設定は以下を参考にしてください</strong></p>
<p><strong><a href="http://efcl.info/wp-content/uploads/2009/09/2009-09-27-20-03-09.png"><img class="alignnone size-medium wp-image-1371" title="2009-09-27 20-03-09" src="http://efcl.info/wp-content/uploads/2009/09/2009-09-27-20-03-09-300x190.png" alt="2009-09-27 20-03-09" width="295" height="148" /></a><br />
 </strong></p>
<ul>
<li><strong>Pre text</strong>:  接頭辞に付ける文字列<br />
 接頭辞はTwitterにポストする際にコメントを付けなかったときに使われる文字列のことです。</li>
<li><strong>Use selection</strong>: 文字列を選択しているときにそれを「」で囲って引用するか?<br />
 引用した文字列はコメントと合わせてポストすることができます。<br />
 FirefoxではCtrlを押しながら選択することで、複数の選択範囲を持つことができます。<br />
 その場合も各選択範囲を「」で囲いポストできます。</li>
<li><strong>Short URL</strong>: 使用する短縮URLサービス<br />
 <a href="http://is.gd/">http://is.gd/</a> or <a href="http://tinyurl.com/">http://tinyurl.com/</a> or <a href="http://tweetburner.com/">http://tweetburner.com/</a> のどれかを使って短縮してから<br />
 ポストできるためより多くの文字列をTwitterにポストできます。</li>
<li><strong>ShortcutKey</strong>: ポストするために使うショートカット</li>
<p>枠内で使いたいショートカットキーを押すと自動で入力されます。<br />
 デフォルトはCS+Return(Ctrl+Shift+Enter) 		</p>
<li><strong>Twitter</strong>: 空白のままでも使用できますが、アカウント名とパスワードを入力しておくと、             <br />
 初回のログインプロンプトがスルーできます。 <br />
 <strong>ただし、セキュリティ的な保証はないので、自己責任でお願いします。</strong></li>
</ul>
<p><strong>設定はリロードしてから反映されます。</strong></p>
<h3><strong>細かい仕様<br />
</strong></h3>
<ul>
<li>設定で決めたショートカットを押すと、プロンプトが現れるので、コメントを入力したい場合はコメントを入れて、<br />
入れなかった場合は設定で決めた接頭辞が入ったものがTwitterにポストされます。</li>
<li>コメント+引用+タイトル+URLの合計が140文字以上になったとき、<br />
140文字に収まるようにタイトルの一部を…と省略します。<br />
(残すものの優先順はURL &gt; コメント &gt; 引用 &gt; タイトル となっています。)</li>
</ul>
<dl>
<dt><strong>Post Now browsing to Twitter for Greasemonkey</strong></dt>
<dd><a title="Post Now browsing to Twitter for Greasemonkey" href="http://userscripts.org/scripts/show/46441">http://userscripts.org/scripts/show/46441</a></dd>
</dl>
<dl>
<dt><strong>azu (azu_re) on Twitter</strong></dt>
<dd><a title="azu (azu_re) on Twitter" href="https://twitter.com/azu_re">https://twitter.com/azu_re</a></dd>
</dl>
]]></content:encoded>
			<wfw:commentRss>http://efcl.info/2009/0929/res1369/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Googleの検索結果にtwitter検索の結果を同時に表示するGreasemonkey</title>
		<link>http://efcl.info/2009/0826/res1266/</link>
		<comments>http://efcl.info/2009/0826/res1266/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 08:24:32 +0000</pubDate>
		<dc:creator>azu</dc:creator>
				<category><![CDATA[Greasemonkey]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[検索]]></category>

		<guid isPermaLink="false">http://efcl.info/?p=1266</guid>
		<description><![CDATA[Googleの検索結果画面にTwitter検索の結果も表示するGreasemonkeyスクリプトです。Twitter検索は@penguinanaの方を使ってるのでより日本語に適したものが返ってくると思います。Twitte [...]]]></description>
			<content:encoded><![CDATA[<p>Googleの検索結果画面に<a href="http://pcod.no-ip.org/yats/">Twitter検索</a>の結果も表示するGreasemonkeyスクリプトです。<br /><a href="http://pcod.no-ip.org/yats/">Twitter検索</a>は<a title="Twitter / penguinana" href="http://twitter.com/penguinana">@penguinana</a>の方を使ってるのでより日本語に適したものが返ってくると思います。<br />Twitter検索はほぼリアルタイムで流れているのでより即時性の高い検索結果が見られるので便利です。</p>
<p><a href="http://efcl.info/wp-content/uploads/sshot-2009-08-26-17-18-14.png"><img class="alignnone size-thumbnail wp-image-1267" title="sshot-2009-08-26-[17-18-14]" src="http://efcl.info/wp-content/uploads/sshot-2009-08-26-17-18-14-150x150.png" alt="sshot-2009-08-26-[17-18-14]" width="150" height="150" /></a></p>
<ul>
<li><a href="http://gist.github.com/raw/175393/c7e70a248b9e812903dc6a5b0502355daed4d95f/Twitter%20Search%20Results%20on%20Google.user.js">Twitter Search Results on Google.user.js</a></li>
</ul>
<p>検索結果に表示するTweetsの数は各自編集してください。<br />デフォルトだと5件表示します。</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://efcl.info/2009/0826/res1266/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
