<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
    <channel>
        <title>We Ain&apos;t Seen Nothin&apos; Yet.</title>
        <link>http://blog.fulltext-search.biz/</link>
        <description>(X)HTML, CSS, Ruby, Rails, JavaScript, Web, 新しいものやおもしろいものを</description>
        <language>ja</language>
        <copyright>Copyright 2008</copyright>
        <lastBuildDate>Mon, 29 Sep 2008 04:30:00 +0900</lastBuildDate>
        <generator>http://www.sixapart.com/movabletype/</generator>
        <docs>http://www.rssboard.org/rss-specification</docs>
        
        <item>
            <title>映画のエンドロール(Credit Title)をjQueryで再現してみた</title>
            <description><![CDATA[<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://blog.fulltext-search.biz/archives/images/2008y09m29d_042315234.jpg"><img alt="2008y09m29d_042315234.jpg" src="http://blog.fulltext-search.biz/archives/images/2008y09m29d_042315234-thumb-400x226.jpg" width="400" height="226" class="mt-image-none" style="" /></a></span></p>

<p>最近、映画を見ることにハマっている<a href="http://twitter.com/noriaki">noriaki</a>です。そんな映画のエンドロール（<a href="http://ja.wikipedia.org/wiki/%E3%82%AF%E3%83%AC%E3%82%B8%E3%83%83%E3%83%88%E3%82%BF%E3%82%A4%E3%83%88%E3%83%AB">クレジットタイトルと呼ぶそうです</a>）を見ていて、これってWebページの効果としても使えないかと思い、試しにjQuery pluginとして作ってみました。</p>

<p>デモページを用意してみましたので、よければご覧ください。</p>

<p><strong><a href="http://blog.fulltext-search.biz/jquery/credit-title.html">jQuery Credit Title - Demo</a></strong></p>

<p>「Start（End?)」ボタンをクリックするとスクリーンにエンドロールが流れます。</p>
]]></description>
            <link>http://blog.fulltext-search.biz/archives/2008/09/jquery-credit-title-plugin.html</link>
            <guid>http://blog.fulltext-search.biz/archives/2008/09/jquery-credit-title-plugin.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">javascript</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">jquery</category>
            
            <pubDate>Mon, 29 Sep 2008 04:30:00 +0900</pubDate>
        </item>
        
        <item>
            <title>Greasemonkeyスクリプトからニコニコ動画のFlashプレーヤーを操作するライブラリ（バージョンアップ）</title>
            <description><![CDATA[<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://blog.fulltext-search.biz/archives/images/2008y08m24d_124508304.jpg"><img alt="2008y08m24d_124508304.jpg" src="http://blog.fulltext-search.biz/archives/images/2008y08m24d_124508304-thumb-400x185.jpg" width="400" height="185" class="mt-image-none" style="" /></a></span></p>

<p><a href="http://coderepos.org/share/browser/lang/javascript/userscripts/GM_Libs" title="CodeRepos::Share - Trac">Greasemonkeyスクリプトから<var>@require</var>で呼び出せるライブラリ</a>第2弾。</p>

<h3>これは何？</h3>

<p>ニコニコ動画のFlashプレーヤーをGreasemonkeyスクリプトから操作するためのライブラリです。</p>

<p><var>@require</var>で読み込むだけで、以下のような各種操作が可能になります。</p>

<ul>
<li>動画情報の取得（再生時間、コメント取得用URL、フィルター情報、など）</li>
<li>動画読み込み完了後の関数実行</li>
<li>通常のFlashプレーヤーとProxomitron（オミトロン）を自動的に判別（違いを気にしないで済む）</li>
<li>再生操作（再生、一時停止、停止）</li>
<li>シーク操作</li>
<li>ボリューム調整（ミュート含む）</li>
<li>リピート ON/OFF</li>
<li>コメント表示 ON/OFF</li>
<li>全画面表示 ON/OFF</li>
</ul>
]]></description>
            <link>http://blog.fulltext-search.biz/archives/2008/08/nico-nico-player-wrapper-4-greasemonkey.html</link>
            <guid>http://blog.fulltext-search.biz/archives/2008/08/nico-nico-player-wrapper-4-greasemonkey.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">greasemonkey</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">nicovideo</category>
            
            <pubDate>Sun, 24 Aug 2008 12:45:00 +0900</pubDate>
        </item>
        
        <item>
            <title>Greasemonkeyスクリプトに自動更新機能をお手軽に付ける</title>
            <description><![CDATA[<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://blog.fulltext-search.biz/archives/images/2008y08m23d_170601562.jpg"><img alt="2008y08m23d_170601562.jpg" src="http://blog.fulltext-search.biz/archives/images/2008y08m23d_170601562-thumb-400x48.jpg" width="400" height="48" class="mt-image-none" style="" /></a></span></p>

<h3>これはなに？</h3>

<p>あなたの開発したGreasemonkeyスクリプト（ぐりもん）に、簡単に自動更新機能を付けるためのライブラリです。</p>

<p>Greasemonkey-0.8以降で使える<var>@require</var>で読み込んで、呼び出しスクリプトを記述するだけで冒頭のイメージのように自動更新機能を付けることができます。</p>

<h3>背景</h3>

<p>Greasemonkeyには、個別のスクリプトの更新を確認する手段がありませんでした。そのため、Greasemonkeyスクリプトの作者は自信のブログ等でアップデートしたことを広報して、再インストールを促すことでしか新しいものを広めることができませんでした。</p>

<p>そこで、各スクリプトが自分自身のバージョンをダウンロード元に確認しにいって、更新があれば利用ユーザに通知する機能を提供するライブラリを<a href="http://blog.fulltext-search.biz/articles/2007/10/06/upgrade-automatically-checking-for-available-updates-in-greasemonkey">作りました</a>。</p>

<p>さらに、Greasemonkey-0.8で実装された@require機能を利用して、もっと簡単に組み込むことができるように改良しています。</p>
]]></description>
            <link>http://blog.fulltext-search.biz/archives/2008/08/update-checker-4-greasemonkey.html</link>
            <guid>http://blog.fulltext-search.biz/archives/2008/08/update-checker-4-greasemonkey.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">greasemonkey</category>
            
            <pubDate>Sat, 23 Aug 2008 18:30:00 +0900</pubDate>
        </item>
        
        <item>
            <title>jQuery-1.2.6の気になるコード</title>
            <description><![CDATA[<p>jQuery 1.2.6が公開されから2ヶ月ほどたちましたが、使っていていくつか気になった部分があるのでメモとして残しておきます。
原因とか対策とかご存じの方、教えてください。</p>

<h3>jQuery.makeArray</h3>

<p>1129-1143行目</p>

<pre class="js:firstline[1129]">
  makeArray: function( array ) {
    var ret = [];

    if( array != null ){
      var i = array.length;
      //the window, strings and functions also have 'length'
      if( i == null || array.split || array.setInterval || array.call )
        ret[0] = array;
      else
        while( i )
          ret[--i] = array[i];
    }

    return ret;
  },
</pre>

<p>Arrayオブジェクトかどうかを判定するために、lengthプロパティの有無を調べているのですが、windowオブジェクトや、String、Functionにもlengthプロパティがあるということで、それぞれを判定しています。</p>

<p>その中で、「array.call」での判定が失敗することがあり、<a href="http://twitter.com/noriaki">twitter</a>でつぶやいてみると、</p>

<blockquote>
  <p>@noriaki なんか古いscriptaculousのeffect.jsだとArray.prototype.callを定義してるんだけど、関係無さげ？<a href="http://tinyurl.com/6de2mj">http://tinyurl.com/6de2mj</a></p>
  <cite><a href="http://twitter.com/monjudoh/statuses/836909894" title="Twitter / 文殊堂: @noriaki なんか古いscriptaculous...">@noriaki なんか古いscriptaculousのeffect.jsだとArray.prototype.callを定義してるんだけど、関係無さげ？http://tinyurl.com/6de2mj</a></cite>
</blockquote>

<p>という話が出てきて、まさしくその通りでした。</p>

<p>というわけで、以下のように暫定的に対応したものを独自に使ってます。</p>

<pre class="js">
--- jquery-1.2.6.org.js  Sat Aug 09 15:40:15 2008
+++ jquery-1.2.6.js    Sat Aug 09 15:39:57 2008
@@ -1132,7 +1132,7 @@
     if( array != null ){
       var i = array.length;
       //the window, strings and functions also have 'length'
-      if( i == null || array.split || array.setInterval || array.call )
+      if( i == null || array.split || array.setInterval || array.apply )
         ret[0] = array;
       else
         while( i )
</pre>

<p>一応、他のところへの影響はなさそうですが、ご利用になる際は十分注意してください。</p>

<p>ってか、よく考えたら<sample>jQuery.isFunction(array)</sample>使ったらいいんじゃないのかな！(笑)</p>

<h3>jQuery.map</h3>

<p>よくつかう$.mapにも気になるコードがあります。</p>

<p>1205-1218行目</p>

<pre class="js:firstline[1205]">
  map: function( elems, callback ) {
    var ret = [];

    // Go through the array, translating each of the items to their
    // new value (or values).
    for ( var i = 0, length = elems.length; i < length; i++ ) {
      var value = callback( elems[ i ], i );

      if ( value != null )
        ret[ ret.length ] = value;
    }

    return ret.concat.apply( [], ret );
  }
</pre>

<p>この最後にある、<sample>return ret.concat.apply( [], ret );</sample>はなにを意図してこうなっているんでしょうか。新しい配列にmapした結果の配列を連結して返しています。</p>

<p>でも、以下のコードを実行した場合、期待しているものとは違った結果が返ってきてしまいます。</p>

<pre class="js">
$.map([1,2,3], function(value, index) {
  return [index, value];
}); //=> [1,1,2,2,3,3]
// [[1,1],[2,2],[3,3]]を期待していた
</pre>

<p>さてさて、どうしたものでしょうか。
単純に、<sample>return val;</sample>とかにしちゃっていいのかな・・</p>

<p><strong>追記(2008-08-17T14:30:00+09:00):</strong><ins datetime="2008-08-17T14:30:00+09:00">上記のように変更してみたところ、通常の<sample>$('p.myclass')</sample>といったセレクタ処理がうまくいかなくなってしまいました・・</ins></p>
]]></description>
            <link>http://blog.fulltext-search.biz/archives/2008/08/jquery-126-worrisome-code.html</link>
            <guid>http://blog.fulltext-search.biz/archives/2008/08/jquery-126-worrisome-code.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">javascript</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">jquery</category>
            
            <pubDate>Sat, 09 Aug 2008 14:40:00 +0900</pubDate>
        </item>
        
        <item>
            <title>Heat the Nicovideo Up 0.3.8 公開しました(bug fix)</title>
            <description><![CDATA[<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://blog.fulltext-search.biz/archives/images/2008y08m08d_013024640.jpg"><img alt="2008y08m08d_013024640.jpg" src="http://blog.fulltext-search.biz/archives/images/2008y08m08d_013024640-thumb-400x85.jpg" width="400" height="85" class="mt-image-none" style="" /></a></span></p>

<p><a href="http://blog.fulltext-search.biz/pages/visualize-comments-upsurge-greasemonkey-script-for-nicovideo" title="ニコニコ動画のコメント熱狂度を可視化するGreasemonkeyスクリプト">Heat the Nicovideo Up</a>の最新版を公開しました。バージョンは0.3.8です。</p>

<p>今回のアップデートはバグフィックスです。0.3.7で追加した機能の影響で、Firefox3の環境でカラーバー右側のボタンが見えなくなっていました。今回のアップデートで直っています。</p>

<p>すでにインストール済みの方は自動更新が働きますので、お待ちください。
（1日待っても自動更新されない場合は、お手数ですが再インストールをお願いします）</p>

<p>インストールや更新履歴などは以下のページからどうぞ。
（うまくインストールできない場合は、[ツール]→[プライバシー情報の消去]でキャッシュを削除して再度お試しください）</p>

<p><strong><a href="http://blog.fulltext-search.biz/pages/visualize-comments-upsurge-greasemonkey-script-for-nicovideo" title="ニコニコ動画のコメント熱狂度を可視化するGreasemonkeyスクリプト">ニコニコ動画のコメント熱狂度を可視化するGreasemonkeyスクリプト</a></strong></p>
]]></description>
            <link>http://blog.fulltext-search.biz/archives/2008/08/heat-the-nicovideo-up-038-bugfix.html</link>
            <guid>http://blog.fulltext-search.biz/archives/2008/08/heat-the-nicovideo-up-038-bugfix.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">greasemonkey</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">nicovideo</category>
            
            <pubDate>Fri, 08 Aug 2008 01:30:00 +0900</pubDate>
        </item>
        
        <item>
            <title>Heat the Nicovideo Up 0.3.7 公開しました</title>
            <description><![CDATA[<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://blog.fulltext-search.biz/archives/images/2008y08m03d_133205776.jpg"><img alt="2008y08m03d_133205776.jpg" src="http://blog.fulltext-search.biz/archives/images/2008y08m03d_133205776-thumb-400x171.jpg" width="400" height="171" class="mt-image-none" style="" /></a></span></p>

<p><a href="http://blog.fulltext-search.biz/pages/visualize-comments-upsurge-greasemonkey-script-for-nicovideo" title="ニコニコ動画のコメント熱狂度を可視化するGreasemonkeyスクリプト">Heat the Nicovideo Up</a>の最新版を公開しました。バージョンは0.3.7です。</p>

<p>このバージョンでは、<a href="http://blog.fulltext-search.biz/archives/2008/07/heat-the-nicovideo-up-036.html">先日のエントリ</a>のコメントでご要望をいただいた、プレーヤー全画面表示の際、カラーバーをシークバーに合わせて伸縮させる機能を復活させました。</p>

<p>おまけとして、上の画像に見えている「全画面表示を視聴専用にする」チェックボックスを付けました。これがチェックされているときに、プレーヤーを全画面表示にすると、「コメント欄」「ヘッダ部分」を非表示にして、視聴画面を大きく表示します。</p>

<p>※注）時報のときにどんな挙動をするか未確認です。</p>

<p>すでにインストール済みの方は自動更新が働きますので、お待ちください。
（1日待っても働かない場合は、お手数ですが再インストールをお願いします）</p>

<p>ダウンロードや更新履歴などは以下のページからどうぞ。</p>

<p><strong><a href="http://blog.fulltext-search.biz/pages/visualize-comments-upsurge-greasemonkey-script-for-nicovideo" title="ニコニコ動画のコメント熱狂度を可視化するGreasemonkeyスクリプト">ニコニコ動画のコメント熱狂度を可視化するGreasemonkeyスクリプト</a></strong></p>

<p>ご意見・ご感想、欲しい機能などがありましたら、コメントやトラックバックでお気軽にどうぞ。次回アップデート時の参考とさせていただきます。</p>
]]></description>
            <link>http://blog.fulltext-search.biz/archives/2008/08/heat-the-nicovideo-up-037.html</link>
            <guid>http://blog.fulltext-search.biz/archives/2008/08/heat-the-nicovideo-up-037.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">greasemonkey</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">nicovideo</category>
            
            <pubDate>Sun, 03 Aug 2008 13:40:00 +0900</pubDate>
        </item>
        
        <item>
            <title>Heat the Nicovideo Up 0.3.6 公開しました</title>
            <description><![CDATA[<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://blog.fulltext-search.biz/archives/images/2008y07m28d_233341474.jpg"><img alt="2008y07m28d_233341474.jpg" src="http://blog.fulltext-search.biz/archives/images/2008y07m28d_233341474-thumb-400x114.jpg" width="400" height="114" class="mt-image-none" style="" /></a></span></p>

<p>Firefox3に対応するために、機能を削ってシンプルにした<a href="http://blog.fulltext-search.biz/pages/visualize-comments-upsurge-greasemonkey-script-for-nicovideo" title="ニコニコ動画のコメント熱狂度を可視化するGreasemonkeyスクリプト">Heat the Nicovideo Up</a>ですが、取り急ぎ「動画ダウンロード」と「フィルター一覧」機能を復活させました。</p>

<p>すでにインストール済みの方は自動更新が働きますので、お待ちください。
（1日待っても働かない場合は、お手数ですが再インストールをお願いします）</p>

<p>ダウンロードや更新履歴などは以下のページからどうぞ。</p>

<p><strong><a href="http://blog.fulltext-search.biz/pages/visualize-comments-upsurge-greasemonkey-script-for-nicovideo" title="ニコニコ動画のコメント熱狂度を可視化するGreasemonkeyスクリプト">ニコニコ動画のコメント熱狂度を可視化するGreasemonkeyスクリプト</a></strong></p>

<p>ご意見・ご感想、欲しい機能などがありましたら、コメントやトラックバックでお気軽にどうぞ。次回アップデート時の参考とさせていただきます。</p>
]]></description>
            <link>http://blog.fulltext-search.biz/archives/2008/07/heat-the-nicovideo-up-036.html</link>
            <guid>http://blog.fulltext-search.biz/archives/2008/07/heat-the-nicovideo-up-036.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">greasemonkey</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">nicovideo</category>
            
            <pubDate>Mon, 28 Jul 2008 23:40:00 +0900</pubDate>
        </item>
        
        <item>
            <title>ニコニコ動画のコメント熱狂度を可視化するGreasemonkeyスクリプトをFirefox3に対応させました</title>
            <description><![CDATA[<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://blog.fulltext-search.biz/archives/images/2008y07m26d_124456359.jpg"><img alt="2008y07m26d_124456359.jpg" src="http://blog.fulltext-search.biz/archives/images/2008y07m26d_124456359-thumb-400x163.jpg" width="400" height="163" class="mt-image-none" style="" /></a></span></p>

<p>ニコニコ動画のコメント熱狂度を可視化するGreasemonkeyスクリプト<a href="http://blog.fulltext-search.biz/pages/visualize-comments-upsurge-greasemonkey-script-for-nicovideo" title="ニコニコ動画のコメント熱狂度を可視化するGreasemonkeyスクリプト">Heat the Nicovideo Up</a>をFirefox3で動くようになおしました。</p>

<p>現在動かなくなっている方は、お手数ですが以前のものをアンインストールした上で、再インストールしてください。</p>

<p>インストールや詳細、更新情報などは以下のページでどうぞ。</p>

<p><a href="http://blog.fulltext-search.biz/pages/visualize-comments-upsurge-greasemonkey-script-for-nicovideo" title="ニコニコ動画のコメント熱狂度を可視化するGreasemonkeyスクリプト">ニコニコ動画のコメント熱狂度を可視化するGreasemonkeyスクリプト</a></p>

<p>動かないーとか、こんな機能が欲しいーとか、ご意見・ご感想などありましたら、コメントやトラックバックいただけるとアップデート時の参考にさせていただきます。</p>
]]></description>
            <link>http://blog.fulltext-search.biz/archives/2008/07/greasemonkey-heat-the-nicovideo-up-for-firefox3.html</link>
            <guid>http://blog.fulltext-search.biz/archives/2008/07/greasemonkey-heat-the-nicovideo-up-for-firefox3.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">greasemonkey</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">nicovideo</category>
            
            <pubDate>Sat, 26 Jul 2008 13:00:00 +0900</pubDate>
        </item>
        
        <item>
            <title>「We Ain&apos;t Seen Nothin&apos; Yet.」はMT4に引っ越しました</title>
            <description><![CDATA[<p>今まで利用していた<a href="http://typosphere.org/">Typo</a>は、Rails製ということもあってカスタマイズしやすかったのですが、Mongrelのメモリリーク問題の影響からか、だんだんと重くなっていました。</p>

<p>ページレイアウトやデザインもカスタマイズしたいなと思っていたところだったので、思い切ってMT4に引越を行いました。
旧コンテンツはRailsのページキャッシュでHTMLファイルを生成し、Apacheのmod_rewriteと組み合わせて、ほぼ全てのページをそのままのURLで見られるようにしてあります。
RSSリーダーでご購読いただいている方も、フィードのURLは基本的に変わらないようにしたつもりです。</p>

<p><a href="http://blog.fulltext-search.biz/articles/">旧トップページはこちら</a>です。
※ただし、コメントやトラックバックの受付は旧コンテンツでは停止しています。コメントは新しいブログ上の好きなページに元URL付きでしていただけると助かります。</p>

<p>今後とも、当ブログをよろしくお願いします。</p>
]]></description>
            <link>http://blog.fulltext-search.biz/archives/2008/06/we-have-moved.html</link>
            <guid>http://blog.fulltext-search.biz/archives/2008/06/we-have-moved.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">blog</category>
            
            <pubDate>Sun, 29 Jun 2008 15:00:00 +0900</pubDate>
        </item>
        
    </channel>
</rss>
