Changeset 35032 for websites

Show
Ignore:
Timestamp:
08/25/09 00:04:35 (4 years ago)
Author:
NeoCat
Message:

*新着時サウンド再生プラグインを追加(デフォルト無効)

Location:
websites/twicli
Files:
5 added
2 modified

Legend:

Unmodified
Added
Removed
  • websites/twicli/index.html

    r34669 r35032  
    8484<h3>プラグインについて</h3> 
    8585「+」タブのPreferencesでプラグイン(JavaScript)を登録することにより、機能拡張ができます。<br> 
    86 標準で以下のプラグインが入っています。 
     86以下のプラグインがあります。 
    8787<ul> 
    8888<li><b>regexp.js</b> : 特定のIDやキーワードを含む発言を抽出するタブを追加します。詳しくは<a href="http://d.hatena.ne.jp/NeoCat/20090101">こちら</a>。 
     
    9292<li><b>favotter.js</b> : <a href="http://favotter.matope.com/">ふぁぼったー</a>の最新2000件のふぁぼられ数を<span style="background-color:#6fc; color:#00c;">[fav:3]</span>のようにTLやユーザの発言に追加表示します。 
    9393<li><b>followers.js</b> : follower以外<small> (いわゆる片想い) </small>の発言を青色で表示します。「+」タブのColor Followers→Renewボタンを押して最新のfollower一覧を取得する必要があります(デフォルトは無効)。 
     94<li><b>sound.js</b> <span style="font-size: small; color: red">[非標準]</span> : TLやReplyの新着時にサウンドを鳴らします。デフォルトでは入っていませんので、使用するにはPreferences>Pluginsの先頭あたりに追加してください。 
    9495</ul> 
    9596 
     
    111112<li><a href="http://d.hatena.ne.jp/NeoCat/20090101/1230913660">抽出プラグインについて(2/2)</a> 
    112113<script type="text/javascript">hatena_bookmark("http://d.hatena.ne.jp/NeoCat/20090101/1230913660");</script></li> 
     114<li><a href="http://d.hatena.ne.jp/NeoCat/20090824/1251125679">soundプラグインについて</a> 
     115<script type="text/javascript">hatena_bookmark("http://d.hatena.ne.jp/NeoCat/20090824/1251125679");</script></li> 
    113116</ul> 
    114117 
  • websites/twicli/twicli.html

    r34670 r35032  
    599599                                        "reset at : " + dateFmt(lim.reset_time); 
    600600} 
     601// 新着reply受信通知 
     602function noticeNewReply() { 
     603        if ($("reply").className.indexOf("new") < 0) 
     604                $("reply").className += " new"; 
     605        callPlugins("noticeNewReply"); 
     606} 
    601607// 受信repliesを表示 
    602608function twReplies(tw) { 
     
    608614        if (replies_in_tl) 
    609615                nr = twShowToNode(tw, $("tw"), false, false, true); 
    610         if (nr > 0 && $("reply").className.indexOf("new") < 0) 
    611                 $("reply").className += " new"; 
     616        if (nr > 0) noticeNewReply(); 
    612617        if (tw.length > 0) since_id_reply = tw[0].id; 
    613618} 
     
    631636                update_reply_counter = 4; 
    632637        } 
     638        callPlugins("noticeUpdate", tw); 
    633639} 
    634640function twOld(tw) { 
     
    682688                                s.className = "tome"; 
    683689                                if (twNode.id == "tw" && $("reply").className.indexOf("new") < 0) 
    684                                         $("reply").className += " new"; 
     690                                        noticeNewReply(); 
    685691                        } 
    686692                        if (tw[i].d_dir == 2 || tw[i].user.screen_name == myname)