ニコ動の解説文周りの邪魔な物を小さくまとめたり消したりするProxomitronフィルタ
概要
最近わけのわからん機能が大量に増えたニコニコ動画ですが、あーもー説明めんどくせー。マイリス保存ボタンとか外部サイトに貼り付け云々とかをタイトル横にちゃちゃっとまとめるってフィルタ「kill widgets w/ prototip」だよ!スクリーンショット見て理解してね!
(図1)使用前 …クリックで拡大
(図2)使用後 …クリックで拡大
ちょっとわかりづらいですが、「マイリスト登録」「マイメモリー保存」「この動画を…」の部分を非表示にし、代わりに動画タイトル付近へアイコン化しています。このアイコンをクリックすると、非表示にした機能をポップアップさせることができます。
(図3)ポップアップ動作サンプル
また、簡易設定機能により任意のアイコンを非表示にすることもできます。全てのアイコンを非表示にすれば、「表示を消すだけ」のフィルタとしても使用できます。
[Patterns] Name = "nicovideo | kill widgets w/ prototip 20090222" Active = TRUE URL = "www.nicovideo.jp/watch(/|\?) $TYPE(htm)" Limit = 200 Match = "(<html)\0$SET(nicoDir=http://storage.samurizeupboard.jp/prox/nicovideo/)" "$SET(prototipSetting=closeButton:'true', hideOn:'click', hideAfter:'0.75', showOn:'click', offset:{x:-2,y:0}," "hook:{target:'rightMiddle',tip:'leftMiddle'}, stem:'leftMiddle', style:'darkgrey', hideOthers:'true', border:3, radius:3)|" "" "$NEST(<script,*/prototype.js*,/script>)" "$SET(CONFIG_PROTOTIP=$GET(CONFIG_MYLIST)$GET(CONFIG_MYMEMORY)$GET(CONFIG_WIDGETS))" "$TST(CONFIG_PROTOTIP=*true*) $SET(#=" "<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js'></script>\n" "<script type="text/javascript" src="$GET(nicoDir)prototip.js"></script>\n" "<link rel="stylesheet" type="text/css" href="$GET(nicoDir)prototip.css">\n)|" "" "<h1>$TST(CONFIG_PROTOTIP=*true*)" "$SET(#=<nobr id="prox_prototip"><style>#prox_prototip img{margin-bottom:-3px} #prox_prototip img:hover{cursor:pointer}</style>)" "($TST(CONFIG_MYLIST=true)" " $SET(#=<img id="prototip_mylist" src="$GET(nicoDir)application_view_tile.png"" " title="マイリストに登録" /> )|)" "($TST(CONFIG_MYMEMORY=true)" " $SET(#=<img id="prototip_comments" src="$GET(nicoDir)film_edit.png"" " title="マイメモリー/投稿者オプション" /> )|)" "($TST(CONFIG_WIDGETS=true)" " $SET(#=<img id="prototip_widgets" src="$GET(nicoDir)cog.png"" " title="この動画を…" /> )|)" "$SET(#=<h1 style="display:inline">)|" "(</h1>$SET(\n))\#$TST(CONFIG_PROTOTIP=*true*)$SET(#=</nobr>)|" "(</h1>(</nobr>|) <p class="TXT12")\#$SET(#= style="display:none")|" "" "(<form [^>]++name="mylist_form"[^>]+)\#$SET(#= style="display:none" id="prox_mylist")|" "$NEST(<strong,/strong>)(^(^</td> <td><[^>]++id=$AV(mylist_add_group_id)))|" "(<input type="submit" name="mylist_add" id="mylist_add_submit"*</form>)\# $TST(CONFIG_MYLIST=true)" "$SET(#=<script type="text/javascript">new Tip('prototip_mylist', $('prox_mylist'), {" " title:"マイリストに登録"," " width:230, $GET(prototipSetting) });</script>)|" "" "(<table [^>]+)\#(^(^> <tr> <td> <form [^>]++id=$AV(mymemory_add_form)))" "$SET(#= style="display:none" id="prox_mymemory")|" "(</table>)\#(^(^ </td> <td width="240">)) $TST(CONFIG_MYMEMORY=true)" "$SET(#=<script type="text/javascript">new Tip('prototip_comments', $('prox_mymemory'), {" " title:"マイメモリー"," " width:'auto', $GET(prototipSetting) });</script>)|" "" "(<p class="TXT12" style="color:#CCC; margin:4px;)\#">$SET(#= display:none" id="prox_widgets">)" "$NEST(<span,/span>)|" "(<img src=$AV([^"]++/dic_[^.]+.gif)[^>]+>[^<]+</a></nobr> )\#(^(^</p>)) $TST(CONFIG_WIDGETS=true)" "$URL(http://www.nicovideo.jp/watch(/|\?)\1)" "$SET(#= |\n<nobr><a href="http://ch.nicovideo.jp/post/\1"><img src="$GET(nicoDir)community.png"" " alt="コミュニティ" class="txt_icon">" "コミュニティに登録</a></nobr> " "<script type="text/javascript">new Tip('prototip_widgets', $('prox_widgets'), {" " title:"この動画を…"," " width:'auto', $GET(prototipSetting) });</script>)|" "(btn_menu_close.gif"[^>]+></a></p> $NEST(<!--,-->) <div style="padding:4px;)\#$SET(#=display:none)" Replace = "\@$TST(\0=?*)\0" "" "$SET(CREDIT =" "tooltips are activated by Prototip 2 : Creative Commons 3.0 by-nc-nd , 2008 Nick Stakenburg" "additional icons from SILK ICONS : Creative Commons 2.5 by , 2005-2008 Mark James )" "" "" "$SET(CONFIG_MYLIST=true)" "$SET(CONFIG_MYMEMORY=true)" "$SET(CONFIG_WIDGETS=true)"
このフィルタには簡易設定機能が付いています。Replace欄の一番下の4つの$SETは、上から順にそれぞれ「マイリストに登録」「マイメモリー/投稿者オプション」「この動画を…」「外部サイトに貼り付け」のアイコンを表示/非表示するスイッチになっています。trueでアイコン表示、falseでアイコン非表示になりますので、お好みで書き換えてください。
例えば次のように書くと
$SET(CONFIG_MYLIST=true) $SET(CONFIG_MYMEMORY=true) $SET(CONFIG_WIDGETS=false)
このように、「マイリストに登録」と「マイメモリー」の2つのボタンのみ表示されるようになります。
それでは、どうぞご利用ください。
技術情報(備忘録)
- Match
- 1パラグラフ
- 初期化。Match欄でのCONFIG値の$SETと、各種ファイルの基本バス(nicoDir)、prototipの共通設定(prototipSetting)の$SET
- CONFIGの$SETは\0に値が入るここでしか行わないようMatchで場合分け。\0は他の場所では極力使わないこと(実害はほぼないはず)
- Matchが4096を超えたので、軽量化のための措置です。
- 2パラグラフ
- prototype.js 1.6.0.3のロード。ニコ動のprototype.jsはバージョンが古くPrototip 2が動かないため、Google APIから1.6.0.3を取得して置換。
- Prototip 2のロード。
- CONFIG_PROTOTIPに値を代入。これは3パラグラフで使用する。
- 3パラグラフ
- Prototip表示用アイコンの表示処理。
- $TST(CONFIG_PROTOTIP=*true*)は、アイコンの表示を飛ばせないかのチェック。4つのCONFIGのうち一つでもtrueがあればMatch。CONFIGが全てfalseならば以降の余計な処理をしないようにする(ソースの保護)。
- h1をいじると動かないフィルタがあるので、h1をdisplay:inlineして横に並べる。
- 表示を更新した時などなぜかタイトル部が途中改行されることがあるようなので、対症療法としてnobrを使用。
- CONFIGの値を確認し、必要なアイコンだけを表示。
- 一番最後で「ランキングの推移」近辺を削除。h1側からMatchをするため、一つ上の行、h1にnobrを加える処理の頭で再帰マッチ用の\nを入れている。将来的にh1からのMatchの必要がなくなったら速やかに外すこと。
- 4パラグラフ
- マイリスト周りの処理。
- アイコンを表示するならばPrototipの設定を書き込む。そうでなければマイリストボタンの消去だけ行う。
- 5パラグラフ
- マイメモリー、投稿者オプション周りの処理。同上。
- 6パラグラフ
- この動画を…周りの処理。同上。
- バカでかい「コミュニティに登録」ボタンをここへ移設。本来この位置が正しいと思う。
7パラグラフ外部サイトに貼り付け周りの処理。同上。
8パラグラフエコノミーで視聴ボタンの消去。使ってる人いないだろうと思ったので思い切って。→復活しました。他の場所に移植もできないではないけど、煩雑になったり一層スマートさが損なわれるので。問題ないよね?
- 1パラグラフ
- Replace
- 1パラグラフ
- 共通置換処理。
- 初期化チェック。\0に値が入っていればCONFIG値の初期化を実行。Match-1パラグラフ参照。
- 2パラグラフ
- クレジット表記。ありがとうございます。
- Prototip 2 Non-Commercial / Unlimited License : Creative Commons 3.0 by-nc-nd , 2008 Nick Stakenburg
- SILK ICONS : Creative Commons 2.5 by , 2005-2008 Mark James
- 3パラグラフ
- 設定/初期化処理。
- 1パラグラフ
TODO
過去のバージョン
更新 @ 2009/02/22
- 「ニコニコメッセで視聴」がない動画でwidgets周りが動作していなかったバグを修正
[Patterns] Name = "nicovideo | kill widgets w/ prototip 20090222" Active = TRUE URL = "www.nicovideo.jp/watch(/|\?) $TYPE(htm)" Limit = 200 Match = "(<html)\0$SET(nicoDir=http://storage.samurizeupboard.jp/prox/nicovideo/)" "$SET(prototipSetting=closeButton:'true', hideOn:'click', hideAfter:'0.75', showOn:'click', offset:{x:-2,y:0}," "hook:{target:'rightMiddle',tip:'leftMiddle'}, stem:'leftMiddle', style:'darkgrey', hideOthers:'true', border:3, radius:3)|" "" "$NEST(<script,*/prototype.js*,/script>)" "$SET(CONFIG_PROTOTIP=$GET(CONFIG_MYLIST)$GET(CONFIG_MYMEMORY)$GET(CONFIG_WIDGETS))" "$TST(CONFIG_PROTOTIP=*true*) $SET(#=" "<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js'></script>\n" "<script type="text/javascript" src="$GET(nicoDir)prototip.js"></script>\n" "<link rel="stylesheet" type="text/css" href="$GET(nicoDir)prototip.css">\n)|" "" "<h1>$TST(CONFIG_PROTOTIP=*true*)" "$SET(#=<nobr id="prox_prototip"><style>#prox_prototip img{margin-bottom:-3px} #prox_prototip img:hover{cursor:pointer}</style>)" "($TST(CONFIG_MYLIST=true)" " $SET(#=<img id="prototip_mylist" src="$GET(nicoDir)application_view_tile.png"" " title="マイリストに登録" /> )|)" "($TST(CONFIG_MYMEMORY=true)" " $SET(#=<img id="prototip_comments" src="$GET(nicoDir)film_edit.png"" " title="マイメモリー/投稿者オプション" /> )|)" "($TST(CONFIG_WIDGETS=true)" " $SET(#=<img id="prototip_widgets" src="$GET(nicoDir)cog.png"" " title="この動画を…" /> )|)" "$SET(#=<h1 style="display:inline">)|" "(</h1>$SET(\n))\#$TST(CONFIG_PROTOTIP=*true*)$SET(#=</nobr>)|" "(</h1>(</nobr>|) <p class="TXT12")\#$SET(#= style="display:none")|" "" "(<form [^>]++name="mylist_form"[^>]+)\#$SET(#= style="display:none" id="prox_mylist")|" "$NEST(<strong,/strong>)(^(^</td> <td><[^>]++id=$AV(mylist_add_group_id)))|" "(<input type="submit" name="mylist_add" id="mylist_add_submit"*</form>)\# $TST(CONFIG_MYLIST=true)" "$SET(#=<script type="text/javascript">new Tip('prototip_mylist', $('prox_mylist'), {" " title:"マイリストに登録"," " width:230, $GET(prototipSetting) });</script>)|" "" "(<table [^>]+)\#(^(^> <tr> <td> <form [^>]++id=$AV(mymemory_add_form)))" "$SET(#= style="display:none" id="prox_mymemory")|" "(</table>)\#(^(^ </td> <td width="240">)) $TST(CONFIG_MYMEMORY=true)" "$SET(#=<script type="text/javascript">new Tip('prototip_comments', $('prox_mymemory'), {" " title:"マイメモリー"," " width:'auto', $GET(prototipSetting) });</script>)|" "" "(<p class="TXT12" style="color:#CCC; margin:4px;)\#">$SET(#= display:none" id="prox_widgets">)" "$NEST(<span,/span>)|" "(<img src=$AV([^"]++/dic_[^.]+.gif)[^>]+>[^<]+</a></nobr> )\#(^(^</p>)) $TST(CONFIG_WIDGETS=true)" "$URL(http://www.nicovideo.jp/watch(/|\?)\1)" "$SET(#= |\n<nobr><a href="http://ch.nicovideo.jp/post/\1"><img src="$GET(nicoDir)community.png"" " alt="コミュニティ" class="txt_icon">" "コミュニティに登録</a></nobr> " "<script type="text/javascript">new Tip('prototip_widgets', $('prox_widgets'), {" " title:"この動画を…"," " width:'auto', $GET(prototipSetting) });</script>)|" "(btn_menu_close.gif"[^>]+></a></p> $NEST(<!--,-->) <div style="padding:4px;)\#$SET(#=display:none)" Replace = "\@$TST(\0=?*)\0" "" "$SET(CREDIT =" "tooltips are activated by Prototip 2 : Creative Commons 3.0 by-nc-nd , 2008 Nick Stakenburg" "additional icons from SILK ICONS : Creative Commons 2.5 by , 2005-2008 Mark James )" "" "" "$SET(CONFIG_MYLIST=true)" "$SET(CONFIG_MYMEMORY=true)" "$SET(CONFIG_WIDGETS=true)"
更新 @ 2009/02/16
- ββ対応
- 「外部貼り付け」部分への対応を終了
- ヘッダ部の整理を目的としているため、他の場所へ移動した物については対応外となります
- 「一般回線で視聴」ボタンを復活
- 「コミュニティへ登録」ボタンを「この動画を…」部へ収納する機能を追加
- 以前の公式仕様へ戻しただけです
- ランキング記録部を消去する機能を追加
- アイコンの追加位置をタイトルの右から左へ移動
- 外部ファイルのURLを変更
- 互換性のため、前のフィルタ用のファイルは以前のURLに残したままにしています
- Multi=TRUE(複数のルールのマッチ)を外した
- 多分競合しないようになっていると思います…たぶん
[Patterns] Name = "nicovideo | kill widgets w/ prototip 20090216" Active = TRUE URL = "www.nicovideo.jp/watch(/|\?) $TYPE(htm)" Limit = 200 Match = "(<html)\0$SET(nicoDir=http://storage.samurizeupboard.jp/prox/nicovideo/)" "$SET(prototipSetting=closeButton:'true', hideOn:'click', hideAfter:'0.75', showOn:'click', offset:{x:-2,y:0}," "hook:{target:'rightMiddle',tip:'leftMiddle'}, stem:'leftMiddle', style:'darkgrey', hideOthers:'true', border:3, radius:3)|" "" "$NEST(<script,*/prototype.js*,/script>)" "$SET(CONFIG_PROTOTIP=$GET(CONFIG_MYLIST)$GET(CONFIG_MYMEMORY)$GET(CONFIG_WIDGETS))" "$TST(CONFIG_PROTOTIP=*true*) $SET(#=" "<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js'></script>\n" "<script type="text/javascript" src="$GET(nicoDir)prototip.js"></script>\n" "<link rel="stylesheet" type="text/css" href="$GET(nicoDir)prototip.css">\n)|" "" "<h1>$TST(CONFIG_PROTOTIP=*true*)" "$SET(#=<nobr id="prox_prototip"><style>#prox_prototip img{margin-bottom:-3px} #prox_prototip img:hover{cursor:pointer}</style>)" "($TST(CONFIG_MYLIST=true)" " $SET(#=<img id="prototip_mylist" src="$GET(nicoDir)application_view_tile.png"" " title="マイリストに登録" /> )|)" "($TST(CONFIG_MYMEMORY=true)" " $SET(#=<img id="prototip_comments" src="$GET(nicoDir)film_edit.png"" " title="マイメモリー/投稿者オプション" /> )|)" "($TST(CONFIG_WIDGETS=true)" " $SET(#=<img id="prototip_widgets" src="$GET(nicoDir)cog.png"" " title="この動画を…" /> )|)" "$SET(#=<h1 style="display:inline">)|" "(</h1>$SET(\n))\#$TST(CONFIG_PROTOTIP=*true*)$SET(#=</nobr>)|" "(</h1>(</nobr>|) <p class="TXT12")\#$SET(#= style="display:none")|" "" "(<form [^>]++name="mylist_form"[^>]+)\#$SET(#= style="display:none" id="prox_mylist")|" "$NEST(<strong,/strong>)(^(^</td> <td><[^>]++id=$AV(mylist_add_group_id)))|" "(<input type="submit" name="mylist_add" id="mylist_add_submit"*</form>)\# $TST(CONFIG_MYLIST=true)" "$SET(#=<script type="text/javascript">new Tip('prototip_mylist', $('prox_mylist'), {" " title:"マイリストに登録"," " width:230, $GET(prototipSetting) });</script>)|" "" "(<table [^>]+)\#(^(^> <tr> <td> <form [^>]++id=$AV(mymemory_add_form)))" "$SET(#= style="display:none" id="prox_mymemory")|" "(</table>)\#(^(^ </td> <td width="240">)) $TST(CONFIG_MYMEMORY=true)" "$SET(#=<script type="text/javascript">new Tip('prototip_comments', $('prox_mymemory'), {" " title:"マイメモリー"," " width:'auto', $GET(prototipSetting) });</script>)|" "" "(<p class="TXT12" style="color:#CCC; margin:4px;)\#">$SET(#= display:none" id="prox_widgets">)" "$NEST(<span,/span>) (^(^<script [^>]++/imthis.js))|" "(<img src=$AV([^"]++/dic_[^.]+.gif)[^>]+>[^<]+</a></nobr> )\#(^(^</p>)) $TST(CONFIG_WIDGETS=true)" "$URL(http://www.nicovideo.jp/watch(/|\?)\1)" "$SET(#= |\n<nobr><a href="http://ch.nicovideo.jp/post/\1"><img src="$GET(nicoDir)community.png"" " alt="コミュニティ" class="txt_icon">" "コミュニティに登録</a></nobr> " "<script type="text/javascript">new Tip('prototip_widgets', $('prox_widgets'), {" " title:"この動画を…"," " width:'auto', $GET(prototipSetting) });</script>)|" "(btn_menu_close.gif"[^>]+></a></p> $NEST(<!--,-->) <div style="padding:4px;)\#$SET(#=display:none)" Replace = "\@$TST(\0=?*)\0" "" "$SET(CREDIT =" "tooltips are activated by Prototip 2 : Creative Commons 3.0 by-nc-nd , 2008 Nick Stakenburg" "additional icons from SILK ICONS : Creative Commons 2.5 by , 2005-2008 Mark James )" "" "" "$SET(CONFIG_MYLIST=true)" "$SET(CONFIG_MYMEMORY=true)" "$SET(CONFIG_WIDGETS=true)"
更新 @ 2008/10/15-2
- h1に手を加えていると動かないフィルタとの互換性を確保
- wrapperのDLボタンでのタイトルコピーやnicovideo filenameと共存できるようになりました
[Patterns] Name = "nicovideo | kill widgets w/ prototip 20081015-2" Active = TRUE URL = "www.nicovideo.jp/watch(/|\?) $TYPE(htm)" Limit = 200 Match = "(<html)\0$SET(nicoDir=http://storage.samurizeupboard.jp/)" "$SET(prototipSetting=closeButton:'true', hideOn:'click', hideAfter:'0.75', showOn:'click', offset:{x:0,y:4}," "hook:{target:'topMiddle',tip:'bottomMiddle'}, style:'darkgrey', hideOthers:'true', border:3, radius:3)|" "" "$NEST(<script,*/prototype.js*,/script>)" "$SET(CONFIG_PROTOTIP=$GET(CONFIG_MYLIST)$GET(CONFIG_MYMEMORY)$GET(CONFIG_WIDGETS)$GET(CONFIG_EMBED))" "$TST(CONFIG_PROTOTIP=*true*) $SET(#=" "<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js'></script>\r\n" "<script type="text/javascript" src="$GET(nicoDir)prototip.js"></script>\r\n" "<link rel="stylesheet" type="text/css" href="$GET(nicoDir)prototip.css">\r\n)|" "" "<h1>$TST(CONFIG_PROTOTIP=*true*)" "$SET(#=<nobr id="prox_prototip"><style>#prox_prototip img{margin-bottom:-3px} #prox_prototip img:hover{cursor:pointer}</style><h1 style="display:inline">)|" "(</h1>)\# $TST(CONFIG_PROTOTIP=*true*)" "($TST(CONFIG_MYLIST=true)" " $SET(#= <img id="prototip_mylist" src="$GET(nicoDir)application_view_tile.png"" " title="マイリストに登録" />)|)" "($TST(CONFIG_MYMEMORY=true)" " $SET(#= <img id="prototip_comments" src="$GET(nicoDir)film_edit.png"" " title="マイメモリー/投稿者オプション" />)|)" "($TST(CONFIG_WIDGETS=true)" " $SET(#= <img id="prototip_widgets" src="$GET(nicoDir)cog.png"" " title="この動画を…" />)|)" "($TST(CONFIG_EMBED=true)" " $SET(#= <img id="prototip_embed" src="$GET(nicoDir)html.png"" " title="外部サイトに貼り付け" />)|)" "$SET(#=</nobr>)|" "" "(<form [^>]++name="mylist_form"[^>]+)\#$SET(#= style="display:none")|" "$NEST(<strong,/strong>)(^(^</td> <td><[^>]++id=$AV(mylist_add_group_id)))|" "(<input type="submit" name="mylist_add" id="mylist_add_submit"*</form>)\# $TST(CONFIG_MYLIST=true)" "$SET(#=<script type="text/javascript">new Tip('prototip_mylist', $('mylist_add_group_id').up('form'), {" " title:"マイリストに登録"," " width:230, $GET(prototipSetting) });</script>)|" "" "(<table [^>]++summary=$AV([%e3][%82][%b3][%e3][%83][%a1][%e3][%83][%b3][%e3][%83][%88])[^>]+)\#" "$SET(#= style="display:none" id="prox_mymemory")|" "(</table>)\#(^(^ </div> </td> <td> <div style="border:solid 1px #CCC; margin:4px; padding:3px;">)) $TST(CONFIG_MYMEMORY=true)" "$SET(#=<script type="text/javascript">new Tip('prototip_comments', $('prox_mymemory'), {" " title:"マイメモリー"," " width:'auto', $GET(prototipSetting) });</script>)|" "" "(<p class="TXT12" style="color:#CCC; padding:4px;)\#$SET(#= display:none" id="prox_widgets">)" ""> $NEST(<span,\sstyle="color:#666;">*,/span>)[^<]+|" "(<img src="http://res.nicovideo.jp/img/watch/menu/dic.gif"[^>]+>[^<]+</a></nobr> </p>)\# $TST(CONFIG_WIDGETS=true)" "$SET(#=<script type="text/javascript">new Tip('prototip_widgets', $('prox_widgets'), {" " title:"この動画を…"," " width:'auto', $GET(prototipSetting) });</script>)|" "" "(<div style=")\#border:solid 1px #CCC; margin:4px; padding:3px;">$SET(#= display:none;" id="prox_embed">)|" "\sstyle="margin:4px;"(>)\# $NEST(<p class="TXT12">,p>)|" "(</div> </div>)\#(^(^ <form method="get" action=$AV(\u))) $TST(CONFIG_EMBED=true)" "$SET(#=<script type="text/javascript">new Tip('prototip_embed', $('prox_embed'), {" " title:"外部サイトに貼り付け"," " width:'auto', $GET(prototipSetting) });</script>)|" "" "(<form method="get" action=$AV(\u))\#(^(^> <input type="hidden" name="lo" value="1">))$SET(#= style="display:none")" Replace = "\@$TST(\0=?*)\0" "" "$SET(CREDIT =" "tooltips are activated by Prototip 2 : Creative Commons 3.0 by-nc-nd , 2008 Nick Stakenburg" "additional icons from SILK ICONS : Creative Commons 2.5 by , 2005-2008 Mark James )" "" "" "$SET(CONFIG_MYLIST=true)" "$SET(CONFIG_MYMEMORY=true)" "$SET(CONFIG_WIDGETS=true)" "$SET(CONFIG_EMBED=true)"
初版 @ 2008/10/15
[Patterns] Name = "nicovideo | kill widgets w/ prototip 20081015" Active = TRUE URL = "www.nicovideo.jp/watch(/|\?) $TYPE(htm)" Limit = 200 Match = "(<html)\0$SET(nicoDir=http://storage.samurizeupboard.jp/)" "$SET(prototipSetting=" "closeButton:'true', hideOn:'click', hideAfter:'0.75', showOn:'click', offset:{x:0,y:4}," "hook:{target:'topMiddle',tip:'bottomMiddle'}, style:'darkgrey', hideOthers:'true', border:3, radius:3)|" "" "$NEST(<script,*/prototype.js*,/script>)" "$SET(CONFIG_PROTOTIP=$GET(CONFIG_MYLIST)$GET(CONFIG_MYMEMORY)$GET(CONFIG_WIDGETS)$GET(CONFIG_EMBED))" "$TST(CONFIG_PROTOTIP=*true*)" "$SET(#=" "<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js'></script>\r\n" "<script type="text/javascript" src="$GET(nicoDir)prototip.js"></script>\r\n" "<link rel="stylesheet" type="text/css" href="$GET(nicoDir)prototip.css">\r\n)|" "" "(<h1>)\# $TST(CONFIG_PROTOTIP=*true*)" "$SET(#=<style>h1 img{margin-bottom:-3px} h1 img:hover{cursor:pointer}</style><nobr>)\#</h1>" "($TST(CONFIG_MYLIST=true)" "$SET(#= <img id="prototip_mylist" src="$GET(nicoDir)application_view_tile.png"" " title="マイリストに登録" />)|)" "($TST(CONFIG_MYMEMORY=true)" "$SET(#= <img id="prototip_comments" src="$GET(nicoDir)film_edit.png"" " title="マイメモリー/投稿者オプション" />)|)" "($TST(CONFIG_WIDGETS=true)" "$SET(#= <img id="prototip_widgets" src="$GET(nicoDir)cog.png"" " title="この動画を…" />)|)" "($TST(CONFIG_EMBED=true)" "$SET(#= <img id="prototip_embed" src="$GET(nicoDir)html.png"" " title="外部サイトに貼り付け" />)|)" "$SET(#=</nobr></h1>)|" "" "(<form [^>]++name="mylist_form"[^>]+)\#$SET(#= style="display:none")|" "$NEST(<strong,/strong>)(^(^</td> <td><[^>]++id=$AV(mylist_add_group_id)))|" "(<input type="submit" name="mylist_add" id="mylist_add_submit"*</form>)\# $TST(CONFIG_MYLIST=true)" "$SET(#=<script type="text/javascript">new Tip('prototip_mylist', $('mylist_add_group_id').up('form'), {" " title:"マイリストに登録"," " width:230, $GET(prototipSetting) });</script>)|" "" "(<table [^>]++summary=$AV([%e3][%82][%b3][%e3][%83][%a1][%e3][%83][%b3][%e3][%83][%88])[^>]+)\#" "$SET(#= style="display:none" id="prox_mymemory")|" "(</table>)\#(^(^ </div> </td> <td> <div style="border:solid 1px #CCC; margin:4px; padding:3px;">)) $TST(CONFIG_MYMEMORY=true)" "$SET(#=<script type="text/javascript">new Tip('prototip_comments', $('prox_mymemory'), {" " title:"マイメモリー"," " width:'auto', $GET(prototipSetting) });</script>)|" "" "(<p class="TXT12" style="color:#CCC; padding:4px;)\#$SET(#= display:none" id="prox_widgets">)" ""> $NEST(<span,\sstyle="color:#666;">*,/span>)[^<]+|" "(<img src="http://res.nicovideo.jp/img/watch/menu/dic.gif"[^>]+>[^<]+</a></nobr> </p>)\# $TST(CONFIG_WIDGETS=true)" "$SET(#=<script type="text/javascript">new Tip('prototip_widgets', $('prox_widgets'), {" " title:"この動画を…"," " width:'auto', $GET(prototipSetting) });</script>)|" "" "(<div style=")\#border:solid 1px #CCC; margin:4px; padding:3px;">$SET(#= display:none;" id="prox_embed">)|" "\sstyle="margin:4px;"(>)\# $NEST(<p class="TXT12">,p>)|" "(</div> </div>)\#(^(^ <form method="get" action=$AV(\u))) $TST(CONFIG_EMBED=true)" "$SET(#=<script type="text/javascript">new Tip('prototip_embed', $('prox_embed'), {" " title:"外部サイトに貼り付け"," " width:'auto', $GET(prototipSetting) });</script>)|" "" "(<form method="get" action=$AV(\u))\#(^(^> <input type="hidden" name="lo" value="1">))$SET(#= style="display:none")" Replace = "\@$TST(\0=?*)\0" "" "$SET(CREDIT =" "tooltips are activated by Prototip 2 : Creative Commons 3.0 by-nc-nd , 2008 Nick Stakenburg" "additional icons from SILK ICONS : Creative Commons 2.5 by , 2005-2008 Mark James )" "" "" "$SET(CONFIG_MYLIST=true)" "$SET(CONFIG_MYMEMORY=true)" "$SET(CONFIG_WIDGETS=true)" "$SET(CONFIG_EMBED=true)"
*1:prototipが動作するようprototype.jsを1.6に置換しているためです。市場は1.5系、prototipは1.6系でしか動作しません。