|
フィルタ、リスト公開/nicovideo
Top / フィルタ、リスト公開 / nicovideo
最終更新: 2011-12-27 (火) 02:51:28 (32d)
|



設定済みファイルを使用している場合、質問は設定済みファイル配布サイトで行ってください


| 省略 ※+クリックで表示 JavaScript必須 |

概要
※現在複数のバージョンに分かれています
flvplayer_wrapper_mod 2010-07-04 ニコ割対応(3種類のデザインから選択)
【2011年12月27日】
※現在の flvplayer_wrapper.swf (本体)の最新版は nicocache さんの wiki の方で最新版が公開されている模様です。
「 flvplayer_wrapper - NicoCache_nl(Mirror) 」 などのキーワードで検索すると見つかります(ただ proxomitron のほうでは、すべての動作は確認しておりません)
使い方は同じで、「 wrapper16_9 111218 」などの名前のファイルをダウンロードすると、その中に flvplayer_wrapper.swf の最新版が入っておりますので
それを proxomitron の html フォルダに入れてください(現在入っている場合は、上書きをして新しいものと交換してください)
(1).旧プレイヤーの導入
flvplayer_wrapper は、旧ニコプレイヤーをベースに動作させているため、旧ニコプレイヤーも導入する必要があります。
[HTTP headers] In = FALSE Out = TRUE Key = "URL: player_version.xml redirect (out)" URL = "www.nicovideo.jp/swf/player_version.xml" Match = "$URL(\1/swf/\2)" Replace = "$RDIR(\1/swf/player/\2)"
[HTTP headers] In = FALSE Out = TRUE Key = "URL: Redirect wrapper" Match = "http://www.nicovideo.jp/swf/([^./]+.swf*)\1" Replace = "$RDIR(http://local.ptron/nico_wrapper/\1)"
(2).flvplayer_wrapper 本体の導入
[Patterns]
Name = "NicoVideo: Set flvplayer_wrapper 100916"
Active = TRUE
URL = "www.nicovideo.jp/watch/$TYPE(htm)"
Limit = 128
Match = "(<div)\#(^(^[^>]++id=$AV(flvplayer_container)))$SET(#= style="height:540px")"
"|"
"(new\sSWFObject \( )\#"
"$AV(*/nicoplayer.swf*\0)$SET(\#="http://www.nicovideo.jp/flvplayer_wrapper.swf\0")"
"([^"]+$AV(flvplayer)[^"]+$AV(*)[^"]+)\#$AV([0-9]+{3})$SET(#="540")"
"$STOP()"
Replace = "\@"| NMM系動画(nm○○○などのswf系動画)は、新プレイヤーで再生 | URL = "www.nicovideo.jp/watch/(^nm)$TYPE(htm)" |
| Zキーを押しながら動画を選択 → 新プレイヤーで再生:キーコード | URL = "(www.nicovideo.jp/watch/$TYPE(htm))(^$KEYCHK(z))" |
flvplayer + wrapper + iroiro.jsを使う場合は上のPatternsは不要
[HTTP headers] In = TRUE Out = TRUE Key = "URL: NicoFlvplayerWrapper2 Redirect custom 071011 (both)" Match = "http://(www|res).nicovideo.jp/flvplayer_wrapper.swf(\??++ts=[0-9]+)\1(^?)" Replace = "$RDIR(http://local.ptron/flvplayer_wrapper.swf\1)"
[HTTP headers] In = TRUE Out = TRUE Key = "URL: NicoFlvplayerWrapper3 Redirect flv_booster 080314 (both)" Match = "http://(www|res).nicovideo.jp/flv_booster.swf\1" Replace = "$RDIR(http://local.ptron/flv_booster.swf\1)"

AS3系のNMM動画(nm○○○○○○○)をwrapper等で取得し、読み込めるようにします。
※www.nicovideo.jp/api~の変更に伴う更新 FireFox7、FireFox8でのみ動作確認 決め打ちです
[HTTP headers] In = TRUE Out = TRUE Key = "URL: getflv(NMM) as3=1 (both)" Match = "(http://smile-[a-z]+[0-9]+.nicovideo.jp/smile\?s=[0-9]+\.[0-9]+)\0$SET(\1=\0as3)" Replace = "$RDIR(\1)$STOP()"
※シーク等が利きません。
※動画の音がズレるなどの場合にはJIHOU Killerを併用すると直るかも。

[Patterns]
Name = "NicoVideo: WatchCushion (081111)"
Active = TRUE
URL = "[^/.]+.nicovideo.jp/watch/?$TYPE(htm)$OHDR(Referer: (^https+://([^/]++.|)(nicovideo|smilevideo|nicochart).jp/)?)"
Limit = 128
Match = "so.write \( $AV(flvplayer_container) \)$STOP()"
Replace = "writeFlash = function () { so.write("flvplayer_container") };\r\n"
" document.getElementById('flvplayer_container').innerHTML = '<button onclick="writeFlash()" style="font-size:x-large; display:block; margin:auto">Load Flvplayer</button>'"
「何の動画か判らずに開く → 動画が勝手にキャッシュされる」というのが嫌な人用 通信節約にもなる。
Refererが空の場合(お気に入りから開いた場合など)もボタンが表示されるようにするには、
「$OHDR(Referer: (^https+://([^/]++.|)(nicovideo|smilevideo|nicochart).jp/)?)」を
「(^$OHDR(Referer: https+://([^/]++.|)(nicovideo|smilevideo|nicochart).jp/))」に置換してください。

[HTTP headers] In = TRUE Out = TRUE Key = "URL: NicoVideo JIHOU Killer type nimg (both)" URL = "res.nimg.jp/swf/player/marqueeplayer.swf*" Replace = "\k"
proxy.pac に nimg.jp を通されている方、あるいは、ブラウザに Proxomitron 直通の方はこちらのフィルターでマーキープレーヤーがカット可能です
(※注:ニコ割りが表示出来ません)
proxy.pac については、「設定済み本体」を配布されているサイト のほうで、ダウンロード可能です。
proxy.pac に nimg.jp を通していない方や、Firefox をお使いの方は、「http://res.nimg.jp/swf/player/marqueeplayer.swf*」のURLを、Firefox のアドオンの AdBlock+ に追加されるのが
もっとも簡単な方法かと思います
特設:時報撃滅大作戦 に、他のさまざまな方法も書かれています。

※#iroiroを使用する場合、このフィルタは無効にしてください
概要
問題点
導入
[Patterns]
Name = "NicoVideo: add download link (090207) swf"
Active = TRUE
URL = "[^/.]+.nicovideo.jp/watch/?$TYPE(htm)"
Limit = 256
Match = "(^(^</body>))"
Replace = "$STOP()"
"<script type="text/javascript">\r\n"
"_d = document;\r\n"
"var myAjax = new Ajax.Request(\r\n"
" 'http://www.nicovideo.jp/api/getflv?v='+Video.id,\r\n"
" {\r\n"
" asynchronous: true,\r\n"
" method: 'get',\r\n"
" onComplete: function(a){\r\n"
" var movie_url = decodeURIComponent(a.responseText.match(/url=([^&]+)/)[1]);\r\n"
" var title = _d.getElementsByTagName('H1')[0].innerHTML.replace(/<.*?>/g, '');\r\n"
" var filename = ''\r\n"
" /* ID */\r\n"
" + Video.id + (window.so && so.getVariable('eco') ? 'low' : '') + '_'\r\n"
" /* TITLE for NTFS */\r\n"
" + title.replace(/^(?:\\s|\\u3000| )+|(?:\\s|\\u3000| )+$/g, '')"
" .replace(/\\?/g, '?').replace(/"/g, '”').replace(/\\//g, '/').replace(/\\\\/g, '¥').replace(/</g, '<').replace(/>/g, '>').replace(/\\*/g, '*').replace(/\\|/g, '|').replace(/:/g, ':')\r\n"
" /* EXTENSION */\r\n"
" + '.' + (window.so && !so.getVariable('eco') && so.getVariable('movie_type') ? so.getVariable('movie_type') : 'flv')\r\n"
" ;\r\n"
" "
" _d.getElementsByTagName('H1')[0].innerHTML = '<a title="動画ダウンロード可能☆" style="color:#F55" href="'+movie_url+'">'+title+'</a>'"
" + ' <span id="setclipboard_container" style="width:100px; height:22px; vertical-align:bottom"></span>'\r\n"
" + '<textarea id="copy" style="display:none">'+filename+'</textarea>';\r\n"
" "
" var so_setclipboard = new SWFObject("http://local.ptron/setClipboard10.swf", "external_setclipboard", 100, 22, 8, "#FFFFFF");\r\n"
" so_setclipboard.addParam("bgcolor", "#FFFFFF");\r\n"
" so_setclipboard.addParam("allowScriptAccess", "always");\r\n"
" so_setclipboard.addVariable("htmlid", "copy");\r\n"
" so_setclipboard.addVariable("value", filename.replace(/&/g, '&'));\r\n"
" so_setclipboard.write("setclipboard_container");\r\n"
" }\r\n"
" }\r\n"
");\r\n"
"</script>\r\n"変更点・更新履歴

概要
動作内容

問題点
[Patterns]
Name = "NicoVideo: filenaming from title [IE] (090129) (Web)"
Active = TRUE
URL = "www.nicovideo.jp/watch/$OHDR(User-Agent: *MSIE)"
Limit = 8
Match = "(^(^</body>))$STOP()"
Replace = "<script type="text/javascript">"
"var filename = Video['title']"
".replace(/^(?: |\\u3000)+|(?: |\\u3000)+$/g, '').replace(/\\?/g, '\\uFF1F').replace(/"/g, '\\u201D')"
".replace(/\\//g, '\\uFF0F').replace(/\\\\/g, '\\uFFE5').replace(/</g, '\\uFF1C').replace(/>/g, '\\uFF1E')"
".replace(/\\*/g, '\\uFF0A').replace(/\\|/g, '\\uFF5C').replace(/:/g, '\\uFF1A').replace(/;/g, '\\uFF1B').replace(/,/g, '\\uFF0C');"
"document.cookie = 'filename=' + filename + '_' + Video['id'] + '; domain=.nicovideo.jp; path=/;';"
"</script>"
[HTTP headers] In = TRUE Out = FALSE Key = "Content-Disposition: NicoVideo filenaming from title [IE] (090129) (In)" URL = "[^.]+.nicovideo.jp/smile\?[vms]$OHDR(User-Agent: *MSIE)" Match = "inline; filename="smile.\8"($OHDR(Cookie: *filename\=([^;]+)\0)$URL(*/smile\?[vms]=[0-9]+.[0-9]+\1)$SET(9=\0\1.\8)|$URL(*/smile\?([vm]$SET(2=sm)|s$SET(2=nm))=([0-9]+)\0.[0-9]+\1)$SET(9=\2\0\1.\8))" Replace = "attachment; filename=\9$LOG(RContent-Disposition: NicoVideo filenaming from title [IE] (090129) (In))"

解決済みの問題
[Patterns]
Name = "NicoVideo: filenaming from title [Fx] (090128) (Web)"
Active = TRUE
URL = "www.nicovideo.jp/watch/$OHDR(User-Agent: *Gecko)"
Limit = 8
Match = "(^(^</body>))$STOP()"
Replace = "<script type="text/javascript">"
"var filename = Video['title']"
".replace(/^(?: |\\u3000)+|(?: |\\u3000)+$/g, '').replace(/\\?/g, '\\uFF1F').replace(/"/g, '\\u201D')"
".replace(/\\//g, '\\uFF0F').replace(/\\\\/g, '\\uFFE5').replace(/</g, '\\uFF1C').replace(/>/g, '\\uFF1E')"
".replace(/\\*/g, '\\uFF0A').replace(/\\|/g, '\\uFF5C').replace(/:/g, '\\uFF1A').replace(/;/g, '\\uFF1B').replace(/,/g, '\\uFF0C');"
"document.cookie = 'filename=' + encodeURIComponent(filename + '_' + Video['id']) + '; domain=.nicovideo.jp; path=/;';"
"</script>"
[HTTP headers] In = TRUE Out = FALSE Key = "Content-Disposition: NicoVideo filenaming from title [Fx] (091007) (In)" URL = "[^.]+.nicovideo.jp/smile\?[vms]$OHDR(User-Agent: *Gecko)" Match = "inline; filename="smile.\8"($OHDR(Cookie: *filename\=([A-Z0-9!%\'\(\)\-._~]+)\0)$URL(*/smile\?[vms]=[0-9]+.[0-9]+\1)$SET(9=\0\1.\8)|$URL(*/smile\?([vm]$SET(2=sm)|s$SET(2=nm))=([0-9]+)\0.[0-9]+\1)$SET(9=\2\0\1.\8))" Replace = "inline; filename*=UTF-8''\9$LOG(RContent-Disposition: NicoVideo filenaming from title [Fx] (091007) (In))" In = TRUE Out = FALSE Key = "Content-Type: NicoVideo swf2octet-stream (091007) (In)" URL = "[^.]+.nicovideo.jp/smile\?s" Match = "application/x-shockwave-flash" Replace = "application/octet-stream$LOG(RContent-Type: NicoVideo swf2octet-stream (091007) (In))"

NicoVideo_dl_xml.zip
※試作品です ブラウザを選ばない…筈
071215 仕様変更でDL出来なくなっていたのを修正 ※フィルタの入れ替えも必要です(readme参照)
FileReferenceはAS2でも使えるみたいなので(mingで使用可能かは不明)、wrapperでDL可能になるかも mingではimport不可能らしい
※現在#wrapperと併用しないと動作しません 修正出来れば今度修正します

動画をローカルファイルから再生可能にします
使用法
[HTTP headers] In = TRUE Out = FALSE Key = "Content-Type: NicoVideo text/plain -> text/css (in)" URL = "flapi.nicovideo.jp/api/getflv" Match = "text/plain" Replace = "text/css; fake"
(text/css に変えることで、gzipを解凍&Webページフィルタリング可能にしている 4.3, 4.4, 4.5 のバグ対策)
[Patterns]
Name = "Nico: Local Movie redirector (080531) test07"
Active = TRUE
URL = "flapi.nicovideo.jp/api/getflv"
Limit = 512
Match = "url=[^&]++("
" %2Fsmile%3Fv%3D[^&]+(^(^*%2Fview%2F([0-9]+)\0%2F))$SET(id=sm\0)$SET(\9=flv)"
"|%2Fsmile%3Fm%3D[^&]+(^(^*%2Fview%2F([0-9]+)\0%2F))$SET(id=sm\0)$SET(\9=mp4)"
"|%2Fsmile%3Fs%3D[^&]+(^(^*%2Fview%2F([0-9]+)\0%2F))$SET(id=nm\0)$SET(\9=swf)"
"|[^&]+(^(^*%2Fshow%2F[0-9]+%2F([0-9]+)\0\&))$SET(id=fz\0)$SET(\9=flv)"
"|[^&]+(^(^*%3Fmovie%3D([0-9]+)\0\&))$SET(id=am\0)$SET(\9=flv)"
")$TST(id=$LST(MovID_Local))$STOP()"
Replace = "url=http%3A%2F%2Flocal.ptron%2Fvideo%2F$GET(id).\9"
[Patterns]
Name = "Nico: ADDLST MovID_Local + Title (080308) test06"
Active = TRUE
URL = "www.nicovideo.jp/watch/[^0-9]$TYPE(htm)"
Limit = 512
Match = "(^(^$NEST(<title>,\1[%E2][%80][%90]*,</title>)))"
"$KEYCHK(^a) "
"$URL(http://www.nicovideo.jp/watch/(^$LST(MovID_Local)(^?))\0)"
"$ADDLST(MovID_Local,# \1)"
"$ADDLST(MovID_Local,\0(^?)) $STOP()"
[Blocklists] List.MovID_Local = "..\Lists\MovID_Local.txt"
($TST(id=$LST(MovID_Local))|$TST(\0=$LST(MovID_Local)))


[Patterns]
Name = "NicoVideo: hide tags"
Active = TRUE
URL = "(www|tw).nicovideo.jp/watch/?$TYPE(htm)"
Limit = 256
Match = "<div id=$AV(video_controls)><div id=$AV(video_tags)"
Replace = "$STOP()<div id="video_controls">"
"<a class="TXT12" style="color:#F30" href="javascript:void(0)" onclick="document.getElementById('video_tags').style.display = 'inline'; this.style.display = 'none'">【タグを表示する】</a>"
"<div id="video_tags" style="display:none""

[Patterns]
Name = "NicoVideo: hide tags toggle (081004)"
Active = TRUE
URL = "[^/.]+.nicovideo.jp/watch/?$TYPE(htm)"
Limit = 256
Match = "<div id=$AV(video_controls)> <div\s(^(^[^>]++id=$AV(video_tags)))"
Replace = "$STOP()"
"<div id="video_controls">"
"<a href="javascript:void(0)" onclick=""
" document.getElementById('video_tags').style.display = document.getElementById('video_tags').style.display==='none' ? 'inline' : 'none'"
"" class="TXT12">【タグ】</a> "
"<style type="text/css">#video_tags P{ display:inline } #video_tags P STRONG{ display:none }</style>"
"<div style="display:none""
ついでに「登録タグ:」を隠し、タグ一覧をinlineにすることでスペース確保 タグ編集などしても効果有り

バイパス時でも発生することがある、この現象(IE以外で発生するかは知らん)はブラウザが勝手にキャッシュを参照して(返ってくるのはtext/javascriptで、それ自体では記事の有無は判断出来ないっぽいそれを実行して記事の有無を判断するっぽいが、キャッシュがあると実行されない?)、記事が存在しない物と決め付けているのが原因かと思われます。
ので、キャッシュを禁止して、必ずリクエストを出して確認させるフィルタ。 これで大百科マニアも大満足。
※サーバーに負担を掛けることになります。この現象が確認出来ない場合は、導入しない方が良いです。
[HTTP headers] In = TRUE Out = FALSE Key = "Cache-Control: api.nicodic.jp no-cache (in)" URL = "api.nicodic.jp/" Replace = "no-store" In = TRUE Out = FALSE Key = "Expires: api.nicodic.jp no-cache (in)" URL = "api.nicodic.jp/" In = FALSE Out = TRUE Key = "If-Modified-Since: api.nicodic.jp no-cache (out)" URL = "api.nicodic.jp/" Replace = "Thu, 01 Jun 1970 00:00:00 GMT" In = TRUE Out = FALSE Key = "Pragma: api.nicodic.jp no-cache (in)" URL = "api.nicodic.jp/" Replace = "no-cache"

[Patterns] Name = "NicoVideo: Collect-TAG (081213)" Active = TRUE URL = "www.nicovideo.jp/watch/?$TYPE(htm)" Limit = 128 Match = "(^(^</body>))" Replace = "$STOP()<script type="text/javascript" charset="utf-8" src="http://local.ptron/NicoVideo_Collect-TAG.js"></script>\r\n"
「id="tag_collection"」がHTML中にあれば、そこにセレクトボックスを挿入。無い場合、HTMLの最後に挿入します。
#iroiroから分離 IE/Trident以外でも動く筈 ※併用する場合「NicoVideo: iroiro (2/2)」フィルタより下に置いてください。
2010/08/30 文字が大きくなっていたのを修正&カテゴリタグの横に画像追加


動画閲覧時に、動画説明文と、タグの領域を、右端まで拡大します。
メニュー(動画説明文)を開いているとき「詳細情報・メニューを隠す」アイコンの右側の ▼ ボタンをクリックすると、
投稿者のプロフィールと、マイリストボタン等を開閉できます。
[Patterns]
Name = "Nicovideo Watch: Wide des + tag area [111211] test"
Active = FALSE
Multi = TRUE
URL = "www.nicovideo.jp/watch/(^*\?edit)$TYPE(htm)"
Limit = 2048
Match = "(<div[^>]++width:)\#712$SET(#=975)([^>]+>)\#(^(^[^<]+<div\sclass=$AV(des_2)\sstyle=$AV(display:\1)[^<]+<[^>]++id=$AV(video_date)))"
"($TST(\1=none;)$SET(des_1=block;)$SET(des_2=none;)|$TST(\1=block;)$SET(des_1=none;)$SET(des_2=block;))"
"$SET(#=\n\n<div class="des_1" style="display:$GET(des_1) float:right;">\n"
"<p><a href="#" onclick="hideOBJs('des_1'); showOBJs('des_2'); Cookie.set('desopen', '1', 1000*60*60*24*365, '.nicovideo.jp', '/'); return false;">"
"<img src="http://res.nimg.jp/img/watch/btn_info_open.png" alt="開く"></a>"
"<span style="text-decoration:none; position:relative; top:-5px; margin:0 3px; color:#eee;">▼</span></p>\n"
"</div>\n\n<div class="des_2" style="display:$GET(des_2) float:right;">\n"
"<p><a href="#" onclick="showOBJs('des_1'); hideOBJs('des_2'); if($('profile_button').style.display == 'block')"
" $('profile_button').style.display='none'; Cookie.set('desopen', '0', 1000*60*60*24*365, '.nicovideo.jp', '/'); return false;">"
"<img src="http://res.nimg.jp/img/watch/btn_info_close.png" alt="閉じる"></a>"
"<a href="javascript:void(0);" style="text-decoration:none; position:relative; top:-5px; margin:0 3px;"
" color:#ccc;" onclick="showprofilebutton(event.pageX,event.pageY); return false;">▼</a></p>\n</div>)"
"|<div[^>]++width:256px;[^>]+>?++$NEST(<div,\sclass=$AV(des_1)*,</div>)[^<]+<div\sclass=$AV(des_2)[^<]+$NEST(<p,</p>)\s+"
"|($NEST(<div,[^>]++class=$AV(owner_prof)*,</div>))\1 </div> </div>$SET(own_prof=\1)"
"|(<div[^>]++width:)\#712$SET(#=975)([^>]++padding:)\#4px$SET(#=0 4px 4px)(^(^[^<]+<div[^>]++id=$AV(video_controls)))"
"|(<div[^>]++)\#style=$AV(float:right; width:256px;*)$SET(#=id="profile_button" style="display:none; position:absolute; z-index:100; width:256px;")"
"([^>]+>)\# (^(^[^<]+<div[^<]+<div[^>]++id=$AV(MSG_deflist)))$SET(#=\n\n$GET(own_prof)\n\n)"
"|([%E2][%86][%91]WATCHHEADER[%E2][%86][%91][^>]+>)\#$SET(#=\n\n\n<script type="text/javascript"><!--\n"
"function showprofilebutton(evt_x,evt_y) {\nif (window.createPopup)\n{\n"
"var mx = event.clientX + document.documentElement.scrollLeft;\n"
"var my = event.clientY + document.documentElement.scrollTop;\n"
"}else{\nvar mx = evt_x;\nvar my = evt_y;\n}\nvar obj = $('profile_button');\nobj.style.top = my + 12 + 'px';\nobj.style.left = mx - 240 + 'px';\n"
"if(obj.style.display == 'none') obj.style.display = 'block';\n"
"else if(obj.style.display == 'block') obj.style.display = 'none';\n}\n"
"--></script>\n\n\n)$SET(des_1=)$SET(des_2=)$SET(own_prof=)$STOP()"
Replace = "\@"
(2011/12/11) 動画説明文とタグとの間の隙間をやや(微量に)狭めました。
flvplayer_wrapperメインの方は、1行目と、15行目の $SET(#=975) を、$SET(#=949) にするとちょうど常用できるほどのサイズになるかもしれません。

[Patterns]
Name = "Nico Watch : space 2 & DERETED --> br [100105]"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/watch/"
Limit = 4096
Match = ">$NEST(<p,(\sclass=$AV(font12)>(*<span id=$AV(deleted_message*)$SET(watch_deleted=1)|*<[b-z]$SET(watch_premium=1)|)*)\0,</p>)"
"$SET(#=><p\0</p>)$SET(watch_des=1)"
"|"
"$NEST(<p,\sclass=$AV(font12)>"
"$TST(watch_des=1)(^$TST(watch_premium=1))"
"$SET(#=<p class="font12">)"
"(\#([%E3][%80][%80]|[%20])+{2,*}$SET(#=<br />))+\#,</p>)"
"$SET(#=</p>)"
"|"
"(\&|\&)\0lt;"
"$TST(watch_des=1)"
"($TST(watch_deleted=1)|$URL(http://www.nicovideo.jp/watch/ca))"
"$SET(#=<)"
"([a-z/][a-z0-9:./?&\-~#=_%' "]++)\#"
"(\"$SET(#=")"
"([a-z0-9:./?&\-~#=_%' "]++)\#"
"\"$SET(#="))++"
"([a-z0-9:./?&\-~#=_%' "]++)\#"
"$TST(\0)gt;$SET(#=>)"
"|"
"</p>"
"$TST(watch_des=1)"
"$SET(#=</p>)"
"$SET(watch_des=)$SET(watch_deleted=)$SET(watch_premium=)$STOP()"
Replace = "\@"
動画説明文の、スペースによる改行(たまにやっている動画がある)を改行タグに置換します(プレミアム会員のものは除く)
プレミアム会員で動画が削除された際に解除されたタグを元に戻します。

スペースによる改行を改行タグに置換する機能も入れてあります
[Patterns]
Name = "NicoWatch: comment height limiter (101109)"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)(www|nine).nicovideo.jp/watch/"
Limit = 32767
Match = "(<body[^>]+>)\#$SET(#=\n<style type="text/css"><!--\n.height_limiter { "
"line-height:1.375; max-height:5.5em; "
"font-size:12px; overflow-y:auto; "
"padding:7px 4px 7px 4px; margin:-3px -3px -3px -0px; "
"}\n--></style>)"
"|(<div[^>]++id="itab_description[^<]+)\#$NEST(<p,( class="font12")\0[^>]+>\1,</p>)"
"$SET(#=<p id="des_h_a"\0 style="padding:4px; display:none;">\1</p>\n<p id="des_h_l" class="height_limiter">\1</p>)"
"|$NEST(<table,([^>]++id="itab"*(class="in">$SET(0=o=$('des_h_l').style;if(o.display!='block'){if(o.display!='inline'){"
"if(o.display==''){o.display='none';showOBJ('des_h_a');}else{o.display='';hideOBJ('des_h_a');}}else{o.display='none'}}else{o.display=''};)"
"|$SET(0=o=$('des_h_l').style;if(o.display==''){o.display='block'};if(o.display=='none'){o.display='inline'};)))\1<div>([^\n]++</div>*)\2,</table>)"
"$SET(#=\n<table\1<div onClick="\0">\2</table>)"
"|(<p id="des_h_(a|l)"((^</p>)?)++)\0( [%E3][%80][%80] | [%E2][%80][%81] )+{4,*}$SET(#=\n\0<br />)"
Replace = "\@"

[Patterns]
Name = "nicovideo | open owner description 20090429"
Active = TRUE
URL = "www.nicovideo.jp/watch(/|\?) $TYPE(htm)"
Limit = 100
Match = "(<td [^>]+> <p )\#[^>]+(^(^><a href="#" onclick="showOBJ))$SET(#=style="display:none;")|"
""
"(<div id="des_1")\#[^>]+$SET(#= style="display:none;")|"
"(<div id="des_2")\#[^>]+$SET(#= style="display:block;")"
Replace = "\@"


[Patterns]
Name = "NicoVideo: itab description border 2px => 1px (110707)"
Active = TRUE
URL = "res.nimg.jp/css/$TYPE(CSS)"
Limit = 256
Match = "\.info_frm\s{\0border-width:0\s2px\s2px;\1}"
"$SET(#=.info_frm{\0border-width:0 1px 1px;\1})"
"|/img/watch/info_tab/$SET(#=http://local.ptron/itab/)"
Replace = "\@"
itab.zipを展開後フォルダごとhtmlフォルダに入れてください

WATCHHEADER(投稿日から【この動画を登録しているマイリスト】までの部分)と動画表示領域を入れ替え
[Patterns] Name = "Nico watch - datails move [080207]" Active = TRUE Multi = TRUE URL = "www.nicovideo.jp/watch/$TYPE(htm)" Limit = 16384 Match = "($NEST(<div,\sid=$AV(WATCHHEADER)>*,</div>))\0" "\1(<div\sid=$AV(WATCHFOOTER)>)\2$STOP()" Replace = "\1\0\2"

F5でのキー制限を解除します。
[Patterns] Name = "M:NICO:RELOAD_OK" Active = TRUE URL = "www.nicovideo.jp/watch/sm*" Limit = 256 Match = "function pressKEY*var User" Replace = "var User"

ctrlキーを押しながら再生ページを開くと自動再生。
$KEYCHK(^C)の部分でキーを指定してるので、$KEYCHK(^C)を外せば、常に自動再生します。
キーコードは下を参照
http://abc.s65.xrea.com/prox/wiki/%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E4%B8%80%E8%A6%A7/#keychk
(自動再生許可と組み合わせて、自動再生の使い分けが出来る)
auto_play.js
を保存してhtmlフォルダへ
[Patterns] Name = "Nico:Auto play onPress" Active = TRUE URL = "www.nicovideo.jp/watch/$TYPE(htm)$KEYCHK(^C)" Limit = 16 Match = "(^(^</head>))$STOP()" Replace = "<script type="text/javascript" charset="utf-8" src="http://local.ptron/auto_play.js"></script>\r\n"

04/09 [右上]も変数に代入(昔の表示方法で見たい人向け?)
05/21 仕様変更に対応
07/19 ユーザーID or チャンネルID(ch~)も変数に代入。存在しなければ空。
10/22 Limitを超えた動画があったので修正
マイメモリー・コミュニティ動画も対応。
サムネ表示フィルタ等にどうぞ。
sm9の場合・・・
$GET(watch_thumb_url)→http://tn-skr1.smilevideo.jp/smile?i=9
$GET(watch_smid)→sm9
$GET(watch_migiue)→3分間まってやるニコニコしろ!!etc
$GET(watch_user_id)→4
ページの1byte目でマッチさせているので、<head>部分や上部header部分などでも使えます。
[Patterns]
Name = "Nico Watch : SET smid thumb_url migiue user_id ch_id [10/11/05]"
Active = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/watch/"
Limit = 32767
Match = "(^(^*"
"(getRotationAdsFor468x60\(($NEST({,}), )+"
"|"
"so.addVariable\($AV(migiue),"
") $AV(\0)\);$SET(watch_migiue=\0)"
"*so.addVariable\($AV(videoId), $AV(\1)$SET(watch_smid=\1)"
"*so.addVariable\($AV(thumbImage), $AV(\2)$SET(watch_thumb_url=$UESC(\2))"
"*(so.addVariable\($AV(videoUserId), $AV(\3)$SET(watch_user_id=\3)"
"|so.addVariable\($AV(channelId), $AV(\4)$SET(watch_ch_id=\4)"
"|so.write)"
""
"))"
"|"
"(^(^*"
"$NEST(<div,\sid="itab_mylist"*<a href=$AV(mylistcomment/video/(??([0-9]+)\2)\1)>*,</div>)"
"$SET(watch_smid=\1)"
"$SET(watch_thumb_url=http://tn-skr1.smilevideo.jp/smile?i=\2)"
"*"
"$NEST(<div,\sclass="owner_prof"*"
"(<a href=$AV(user/([0-9]+)\3*)"
"|<a href=$AV(http://ch.nicovideo.jp/channel/(ch[0-9]+)\4*)"
")*,</div>)"
"$SET(watch_user_id=\3)"
"$SET(watch_ch_id=\4)"
"))"
"|"
"(^(^?))"
Replace = "$STOP()"

サムネ表示 / リンク先はニコチャート
[Patterns]
Name = "Nico Watch : Thumb View [10/10/14]"
Active = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/watch/"
Limit = 2048
Match = "($NEST(<div,\sclass="owner_prof"*,</div>))\0"
"$TST(watch_thumb_url=?*)"
"$STOP()"
Replace = "\0"
"<div style="margin:3px 0px 0px 0px; text-align:right;">"
"<a href="http://www.nicochart.jp/watch/$GET(watch_smid)">"
"<img src="$GET(watch_thumb_url)" style="border:solid 2px #333;">"
"</a>"
"</div>"


![]()
※上の画像はNicoWatch: comment height limiterと併用
[Patterns]
Name = "NicoWatch: thumbnail right (111012)"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/watch/(^*\?edit)"
Limit = 4096
Match = "(-> <div style=")\#width:712px([^>]+>)\0"
"$SET(#=width:832px\0<table cellspacing="0" cellpadding="0"><tr valign="top"><td id="user_p"><td width="100%">)"
"|(<div class="des_1" style="display:)\#[^;]+$SET(#=none)"
"|(<st[^>]++color:#393F3F;">20[^>]++g>)\#([^<]++)\0([%E3][%83][%A6][^<]+|([%E3][%83][%AA][^<]+)\1"
"$SET(#=\0\1))(^(^<sp|<!-))$SET(#=\n<span id="user_n"></span>\n)"
"|>\s(<table[^>]++id="itab")\0$SET(#=></table>\0)"
"|</div>\s(^(^<div style="width:256px))$SET(#=<div id="thumb" style="float:right; padding:4px 4px 4px 4px;">)"
"|<div style="width:256px; ov*((<im[^>]++class="img_sq48"></a>)\0*|)"
"(<span[^>]++style="color:#C00;">$SET(3= style="text-decoration:none;")*|)"
"((<a href="user/?[^>]+)\1><strong>([^\n\r]++/a>)\2</p>"
"$SET(user_n=\n$('user_n').innerHTML='\1\3><strong>投稿者:\2';)*|)"
"((<a href="#" onclick="addWatchlist\([^']+)\4\'([^']+)\5\'([^']+)\6\'([^']+)\7\'(\);[^>]+>)\8*$\(\'addW"
"$SET(user_p=\4\\'\5\\'\6\\'\7\\'\8\0)*|$SET(user_p=\0))-> </div> </div>"
"|(> <div id="WATCHFOOTER">)\#\s"
"($TST($GET(user_p)=?+)$SET(0=\n$('user_p').innerHTML='<div style="margin:0 4px 0 0;">$GET(user_p)</div>';)|)"
"$SET(#=<script type="text/javascript"><!--\n"
"$('thumb').innerHTML='"
"<a href="http://www.nicochart.jp/watch/'+Video.id+'"><img width="130" style="border:solid 2px #333;" src="'+Video.thumbnail+'"></a>"
"';\0$GET(user_n)\n--></script>)"
"|(MouseOver="return popThumb[^']+)\#\'([^']++user[^']+)\0\'(^(^[^\n\r]++/a>\';))$SET(#=\\'\0\\')"
Replace = "\@"

動画id(sm形式)とサムネURLをグローバル変数に代入必須
![]()
[Patterns]
Name = "Nico: thumbnail on left side of explanation(101014)"
Active = FALSE
URL = "$TYPE(htm)www.nicovideo.jp/watch/(^\?edit)"
Limit = 8192
Match = "<div class="info_frm">*<div id="itab_description" class="info in"> <p class="font12" style="padding:4px;">(*)\1</p> </div>"
"$SET(#=<div style="border:solid 2px #CCC;">"
"<div style="float:left;"><img style="width:130;height:100;" src="$GET(watch_thumb_url)">"
"</div><div style="background: #efefef;overflow: auto;overflow-y: scroll;direction: rtl;height: 100px;">"
"<p style="font-size:12px;line-height:1.5; padding:2px 4px; direction: ltr;min-height: 400px;">\1</p></div></div>)"
""
"|$NEST(<table,\swidth="100%"*id="itab"*,</table>)"
"|$NEST(<div,\sid="itab_mylist"*,</div>)"
"|$NEST(<div,\sid="itab_edit"*,</div>)"
Replace = "\@"
マイリストコメント等のタブも消えます
![]()
Name = "Nico: thumbnail on left side of explanation2(101014)"
Active = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/watch/(^\?edit)"
Limit = 8192
Match = "<div id="itab_description" class="info in"> <p class="font12" style="padding:4px;">(*)\1</p> </div>"
"$SET(#=<div id="itab_description" class="info in">"
"<div style="float:left;"><img style="width:130;height:100;" src="$GET(watch_thumb_url)">"
"</div><div style="background: #efefef;overflow: auto;overflow-y: scroll;height: 100px;">"
"<p style="font-size:12px;line-height:1.5; padding:2px 4px; min-height: 400px;">\1</p></div></div>)"
Replace = "\@"
こちらはマイリストコメント等のタブは残ります

NicoWatch Nanika_switch (111012).txt
主な機能
サムネ(クリックでニコニコチャートへリンク)、コメント、タグ、マイリスト、プレーヤー、ヘルプ、メニュー、
動画下広告、市場、フッタ上広告、フッタの表示・非表示を切り替えるボタン形式のスイッチを追加します
その他機能
"詳細情報・メニューを隠す"ボタン削除、投稿者情報などのレイアウト変更
iroiro併用可(iroiro_conf.jsの設定を"del_footer = false;"にしてください)


[HTTP headers] In = TRUE Out = FALSE Key = "Content-Type: NicoVideo text/xml -> text/css (in) (071207)" URL = "msg.nicovideo.jp/[0-9]+/api/(^?)" Match = "text/xml" Replace = "text/css; fake"
または、
[HTTP headers] In = TRUE Out = TRUE Key = "URL: NicoVideo: OtherTypeFilter ON (both) (071207)" URL = "msg.nicovideo.jp/[0-9]+/api/(^?)" Replace = "$FILTER(true)" In = FALSE Out = TRUE Key = "Accept-Encoding: NicoVideo: no gzip (071207) for 4.5 (out)" URL = "msg.nicovideo.jp/[0-9]+/api/(^?)"「Accept-Encoding: NicoVideo: no gzip (070802) (out)」は、Proxomitron4.5 では $TYPE(oth) になる場合、gzipが解凍されないので、gzipで送ってこないようにさせる為の物です。
コメント鯖のURLが変更されました。(2007/12/07)
msg[0-9]+.nicovideo.jp/api/(^?) → msg.nicovideo.jp/[0-9]+/api/(^?)
書き込めないときは、webページフィルタの"Kill pop-up windows" "Suppress all JavaScript errors" "Stop browser window resizing" "Restore pop-ups after a page loads"をOFF
問題のフィルタのURL欄の頭に (^([^/]++.|)nicovideo.jp(:[0-9]+|)/(watch/?|api/getpostkey)) を挿入してもOK の筈
think氏が修正したフィルタと入れ替えた方が良いかもしれません。

[Patterns] Name = "Nico: OwnerComment bypass (100826) test01" Active = TRUE URL = "msg.nicovideo.jp/[0-9]+/api/(^?)" Bounds = "<chat\s*</chat>" Limit = 2048 Match = "($NEST(<chat,\s[^>]++\sfork=$AV(1)*,</chat>))\0" Replace = "\0"
投稿者コメントのみ NGword や vpos="0" killer などをスルーさせるフィルタ。スルーしたいフィルタより上に配置して下さい。「マクロ名がありません」を防げるかも。
マルチを付ける(「複数のルールのマッチを許可する」)と全くの無意味になるのでご注意を。
※バイパス出来ないコメントがあったため修正 [2010年8月26日]

コメントにIDを表示する プレミアムユーザの発言の場合、頭に「P」が追加されます
wrapperはcustom 2008-04-18 06:00版から、iroiroは2008-04-03 03:00版から、
ログリスト・動画上どちらにでもID表示が可能になりました。
そのため、もうID表示フィルタを導入する必要はほとんどありません。
また、iroiro 2008-04-03 03:00版から、ID表示フィルターに関する機能は無くなりました。
以下のどれかのフィルタ(一つのみ選択)を導入してください
[Patterns] Name = "NicoVideo: id view (message) (071207)" Active = TRUE Multi = TRUE URL = "msg.nicovideo.jp/[0-9]+/api/(^?)" Limit = 512 Match = "<chat(^(^\s))((\suser_id=$AV(\1)|\spremium=$AV(1)$SET(0=P)|\s[^">]+\"[^"]+\")+)\#\#(/|)\#>" Replace = "<chat\@>\0[\1] "
070822 IDが無い場合も user_id="" を追加していたのをやめた ※27桁のIDがどうにかなる訳ではない 070809 $TYPE(oth) を削除
[Patterns]
Name = "NicoVideo: id view (message) (071207) 184_id_length = 7"
Active = TRUE
Multi = TRUE
URL = "msg.nicovideo.jp/[0-9]+/api/(^?)"
Limit = 512
Match = "<chat(^(^\s))((\suser_id=$AV(([0-9]+(^?)|?+{7})\1*)|\spremium=$AV(1)$SET(0=P)|\sfork=$AV(1)$SET(1=投稿者)|\s[^">]+\"[^"]+\")+)\#\#(/|)\#>"
Replace = "<chat\@>\0[\1] "
071031 投稿者コメントの場合、[投稿者] にするように変更
[Patterns]
Name = "NicoVideo: id view (comment) (071226) 184_id_length=7, bypassOwnerComment"
Active = TRUE
Multi = TRUE
URL = "msg.nicovideo.jp/[0-9]+/api/(^?)"
Limit = 512
Match = "<chat(^(^\s))((\suser_id=$AV(([0-9]+(^?)|?+{7})\1*)|\spremium=$AV(1)$SET(0=P)|\sfork=$AV(1&\2)|\s[^">]+\"[^"]+\")+)\#\#(/|)\#>"
"($TST(\2=1(^?))$SET(0=)$SET(2=)|$SET(2=[\1] ))"
Replace = "<chat\@>\0\2"
[Patterns] Name = "Nico: vpos="0" killer (071207) test01" Active = TRUE URL = "msg.nicovideo.jp/[0-9]+/api/(^?)" Limit = 512 Match = "$NEST((<chat\s[^>]++vpos=$AV([#0:100])[^>]++>)\0,</chat>)( </packet>$SET(1=\0</chat></packet>)$STOP()|) " Replace = "\1"
動画冒頭1秒に書き込まれたコメントを削除します。ネタバレなどの対策に。


[Patterns] Name = "NicoVideo: delcommand (071207)" Active = TRUE Multi = TRUE URL = "msg.nicovideo.jp/[0-9]+/api/(^?)" Limit = 512 Match = "<chat((\s(^mail=)[^">]+\"[^"]+\")+)\0\smail=$AV(((任意のコマンド) )+(\#\s(任意のコマンド))+\#)" Replace = "<chat\0 mail="\@""
※任意のコマンドと書かれてる所にキャンセルしたいコマンドに文字を置き換える。 複数コマンドを登録する場合は"|"で区切る 例:ue|shita (07/08/23更新)

[Patterns] Name = "NicoVideo: put small command (071207)" Active = TRUE Multi = TRUE URL = "msg.nicovideo.jp/[0-9]+/api/(^?)" Limit = 512 Match = "<chat(^(^\s))((\s(^mail=)[^">]+\"[^"]+\")+)\0(\smail=$AV((big )+(\#\sbig)+\#)|)" Replace = "<chat\0 mail="small \@""
070809 $TYPE(oth) を削除 070717 URL Match を正確な物に変更 070609 Match の big を ue に変えると、blue に誤爆するのを修正 070513 書き込み後の <chat_result に誤爆していたのを修正(誤爆するとリロードしないと書き込めなくなる)
ちなみに、Replace の small を消すと、全て通常サイズ or small になります。(bigコマンドを消しただけになる)
また、Match の big を (big|ue|shita) の様に変えると、big, ue, shita コマンドが全て消せます。

[Patterns] Name = "NicoVideo: All Command-cancel (080308)" Active = TRUE Multi = TRUE URL = "msg.nicovideo.jp/[0-9]+/api/(^?)" Limit = 512 Match = "(<chat*)\1mail=$AV(*)([^>]+>)\2" Replace = "\1mail="small"\2"
070809 $TYPE(oth) を削除 080308 極稀に誤爆をしてチャットが空白になることがあった。
コマンドを使用したコメントを問答無用で全部 small にします。 全てのコマンドをキャンセルするには、Replaceの所にある、mail="small"をmail=""へ変更する。

[Patterns]
Name = "NicoNico Comment W-CUT(4+) (071209)"
Active = TRUE
Multi = TRUE
URL = "msg.nicovideo.jp/[0-9]+/api/(^?)"
Limit = 512
Match = "([%EF][%BD][%97]|w)+{4,*}"
Replace = "wwww"
連続で生える草の数を4つまでに制限します。
草5つ以上のコメントを非表示にするのではなく4つになるまで草を刈ります。

短くしたい一文字の連続をリストに登録してください。
[Blocklists] List.Comment_CUT = "..\Lists\Comment_CUT.txt"
[Patterns]
Name = "NicoNico List Comment CUT(3+)[071207]"
Active = TRUE
Multi = TRUE
URL = "msg.nicovideo.jp/[0-9]+/api/(^?)"
Limit = 512
Match = "($LST(Comment_CUT))\0"
"($TST(\0))++"
"(^(^$TST(\0)$TST(\0)$TST(\0)))"
※コメントで9連続以上の1文字(半角数字)を9連続まで短くする (半角数字は動画への誘導がある為、分離)
[Patterns]
Name = "NicoNico number Comment CUT(9+)[071207]"
Active = TRUE
Multi = TRUE
URL = "msg.nicovideo.jp/[0-9]+/api/(^?)"
Limit = 512
Match = "([0-9])\0"
"($TST(\0))++"
"(^(^$TST(\0)$TST(\0)$TST(\0)$TST(\0)$TST(\0)$TST(\0)$TST(\0)$TST(\0)$TST(\0)))"


NG WORD に一致した場合、そのコメント自体を削除
[Blocklists] List.NGword_UTF-8 = "..\Lists\NGword_UTF-8.txt"
[Patterns] Name = "NicoVideo: NG word (081109)" Active = TRUE URL = "msg.nicovideo.jp/[0-9]+/api/(^?)" Bounds = "<chat\s*</chat>( <num_click| </packet>|)" Limit = 512 Match = "<chat(([^">]+\"[^"]+\")+[^>]+)\0*$LST(NGword_UTF-8)*</chat>" "(( <num_click| </packet>)\1 $SET(2=<chat deleted="1"\0></chat>\1) |)" Replace = "\2"
「*$LST」を「>*$LST」に書き換えると若干高速化しますが、行頭指定が出来なくなります。
081109 行頭も指定可能にした(但し若干低速化 リストやコメントXMLにもよるが、1割程低速化??) 081103 <num_click が多すぎる時に最後のコメントが消されると、LogListが真っ白になり表示されなくなるのを修正 ついでに deleted="1" を付けたので、LogListに無駄な空行が入るのも防げる(動画投稿者によるコメント削除扱い) 080626 @ボタンコメントがある動画で最終コメントがNGの場合、再生が始まらないのを修正。※081002更新が追加されてなかったようなので追加 070806 $TYPE(oth) を削除&「[] 」が残るのを直した ※空行が残りますが、それを消すとLogListが真っ白になり表示されなくなります 070717 リスト名を NGword から NGword_UTF-8 に変更 & ファイル名を nicoNG List.txt から NGword_UTF-8.txt に変更 & (^?) 追加 070714b 最後のコメントが消されると、「コメント取得中のため、処理が中断されました。」になり、LogListが真っ白になるのを修正 070611 無意味な Multi を削除 070513 書き込み後の <chat_result に誤爆していたのを修正 070511a まず無いが、誤爆しないように変更
行頭は「>」、行末は「(^(^<))」 「abc」のみのコメントにマッチさせたい場合、「>abc(^(^<))」と指定してください。
参考リスト(ご自由に追記してください)
#NGWORD 微修正版 [2010年08月26日]
(2010年6月頃の仕様変更により、新プレイヤーは deleted置換が必要なくなった(?)かもしれません)wrapper/新プレイヤー両用
[Patterns]
Name = "NicoVideo: NG word (081109) 100826"
Active = TRUE
URL = "msg.nicovideo.jp/[0-9]+/api/(^?)"
Bounds = "<chat\s*(\"/>|</chat>( <num_click| </packet>| <thread|))"
Limit = 2048
Match = "<chat(([^">]+\"[^"]+\")+[^>]+)\0*$LST(NGword_UTF-8)*</chat>"
"(( <num_click| </packet>| <thread)\1 ($SET(2=<chat\0></chat>\1)$TST(\0=*\"\sdeleted*)|$SET(2=<chat deleted="1"\0></chat>\1)) |)"
Replace = "\2"
| NGWORD 微修正版2 [2011年12月21日] バグ発見のため、公開を一旦停止いたします、申し訳ございません; |

NG COMMAND に一致した場合、そのコメント自体を削除
[Patterns] Name = "NicoVideo: NG command (081103)" Active = TRUE URL = "msg.nicovideo.jp/[0-9]+/api/(^?)" Bounds = "<chat\s*</chat>( <num_click| </packet>|)" Limit = 512 Match = "<chat(^(^\s))((\s(^mail=)[^">]+\"[^"]+\")+\smail=$AV((*\s|)from_button(\s*|(^?)))([^">]+\"[^"]+\")+[^>]+)\0>*</chat>" "(( <num_click| </packet>)\1 $SET(2=<chat deleted="1"\0></chat>\1) |)" Replace = "\2"
※from_button を好きなコマンドに変えてください
(投稿者コメントの@ボタンで投稿されたコメントは mail に from_button が含まれています)
(閲覧者用の@ボタンで投稿されたコメントは mail に is_button が含まれています)
(「世界の新着動画」で投稿されたコメントは mail に _live が含まれています)


タイトルか作者コメントにリストで指定した文字列を含む、または指定したアドレスの動画を非表示にします。
また特定のチャンネル、コミュニティに所属する動画も非表示にします。
リストの記述法はNG WORDと同様です。チャンネルは「ch***」、コミュニティは「co***」の形で記述してください。
[Blocklists] List.NGtitle = "..\Lists\NGtitle.txt"
[Patterns]
Name = "Nico: NGtitle (091104)"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/(^related_tag|watch)"
Limit = 4096
Match = "(<td>|<div style="padding:4px;">)"
"( <!----> $NEST(<div,[^>]++class=$AV(thumb_uad_header)*,</div>) <!----> |\s)"
"$NEST(<div,[^>]++class=$AV(thumb_frm)*"
"(<a\s[^>]++href=$AV(watch/$LST(NGtitle))"
"|<img\s[^>]++src=$AV(*(common/|channel_)cms/$LST(NGtitle).gif)"
"|<a\s[^>]++class=$AV(video)[^>]+>(<span\s[^>]+>|)[^<]++$LST(NGtitle)"
"|class=$AV((vinfo_description|font12))>[^<]++$LST(NGtitle)"
")*,</div>)\s"
"(</td>|</div>)"
"|$NEST(<table,\s[^>]++width=$AV(664)*<a\s[^>]++href=$AV(*(community|channel)/$LST(NGtitle)(^?))*,</table>) <div\s[^>]+> <!--[^>]+> $NEST(<div,</div>) <!--[^>]+> $NEST(<div,\s[^>]++class=$AV(thumb_frm)*,</div>) </div>"
"|$NEST(<tr,*(<a\s[^>]++href=$AV(watch/$LST(NGtitle)(^?))|<a\s[^>]++class=$AV(video)[^>]+>[^<]++$LST(NGtitle))*,</tr>) $NEST(<tr,[^>]+><td\scolspan=$AV(2)*,</tr>)"
"|(^(^<td>( <!----> $NEST(<div,[^>]++class=$AV(thumb_uad_header)*,</div>) <!---->|)[^>]++style=$AV(width:(312|288)px;)))$SET(ng=$GET(ng)1)$TST(ng=111)$SET(#=</tr><tr valign="top" style="">)$SET(ng=)"
"|(^(^<td>[^>]++style=$AV(width:132px;)))$SET(ng=$GET(ng)1)$TST(ng=11111)$SET(#=</tr><tr valign="top" style="">)$SET(ng=)"
"|</tr> <tr\svalign=$AV(top)>$URL(http://www.nicovideo.jp/(newarrival|recent|search|tag|?g=(^all)))"
"|(class=$AV(worldvideo_bg))\#$SET(ng=)"
"|(^(^<div\sclass="content_360"))$STOP()"
Replace = "\@"
作者コメントに反応させたくない場合はマッチ部分の上から7行目を削除
コミュニティ、チャンネルに反応させたくない場合はマッチ部分の上から5、10行目を削除
検索表示を3列にしている場合は下から4行目の ng=111 を ng=1111 にする

NG TITLEに一致した場合、自動的に一つ前のページに戻るか、ページを閉じる
[Patterns] Name = "NicoVideo: NG-TITLE (watch, javascript) (081106)" Active = TRUE Multi = TRUE URL = "[^/.]+.nicovideo.jp/watch/?$TYPE(htm)" Limit = 2048 Match = "(^(^</head>))" Replace = "$STOP()<script type="text/javascript" charset="utf-8" src="http://local.ptron/NicoVideo_NG-TITLE.js"></script>\r\n"

NG TITLE (091104)を参考に作ってみました (2011年12月13日更新)
[Patterns]
Name = "Nico: NGtitle 2 (111213) test "
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/(search|tag|ranking|newarrival|recent|my/history)"
Limit = 4096
Match = "$NEST(<div,\sclass=$AV(thumb_col_[124])*<p\sclass=$AV(font[0-9]+)[^>]+>(<nobr>|)(<a\shref=$AV(watch/$LST(NGtitle)(^?))|<a\s[^>]++class=$AV(watch)\stitle=$AV(*$LST(NGtitle)*))*,</div>)\s+"
"|$NEST(<div,\sclass=$AV(ranking_box)\sid=$AV(item[0-9]+)*<a[^>]++(href=$AV(watch/$LST(NGtitle)((^?)|\?*))|title=$AV(*$LST(NGtitle)*))*,</div>)"
"|$NEST(<div,\sstyle=$AV(padding:4px;)>?++id=$AV(item[0-9]+_uad_current)*(<a[^>]++href=$AV(watch/$LST(NGtitle)((^?)|\?*))|<a\sclass=$AV(watch)[^>]+>[^<]++$LST(NGtitle))*,</div>)"
"|$NEST(<li$URL(*/history),[^>]+>*<h4>(<a\shref=$AV(watch/$LST(NGtitle)(^?))|<a\shref="watch[^>]+>[^<]++$LST(NGtitle))*,</li>)"
"|</div> <div\sstyle=$AV(clear:both;)> (^(^<div class="thumb_col_[24]))"
"|(^(^<div\sclass=$AV(thumb_col_2)))$SET(ng=$GET(ng)1)$TST(ng=111)"
"$SET(#=</div>\n<div style="clear:both;" class="">\n\n)$SET(ng=)"
"|(^(^<div\sclass=$AV(thumb_col_4)))$SET(ng=$GET(ng)1)$TST(ng=11111)"
"$SET(#=</div>\n<div style="clear:both;" class="">\n\n)$SET(ng=)"
"|(^(^class="content_312"|id="ranking_sub"))$SET(ng=)$STOP()"
Replace = "\@"
[2011/12/05] ランキングの1列表示の場合、動画ID(sm(nm)○○○○○○など)で削除出来なくなっていたのを対応。
[2011/12/13] リニューアルされた総合ランキングに対応しました。
トップページ用 (2011年12月17日更新)
[Patterns]
Name = "Nico: NGtitle toppage (111217) test "
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/(top/|video_top(/|(^?)))"
Limit = 4096
Match = "(onclick="switchCategoryTag\(\'[^']+\'\);)\#\sreturn\sfalse;"
"|(class="g1"><a href=)\#("\?g=")$SET(#="/top/")"
"|(</div> )\#(^(^<div[^>]++id="PAGEBODY"))$SET(#=\n<style type="text/css"> #category_contents h3 { border-bottom:2px solid #ddd; }"
" #category_contents h3 span , #channel1 , .cat_summary , div[id="uad"] , div[id="award"] , .worldvideo_ctg_bg , #sherlock > h3 > span , #R18-Banner , #enter_DMM { display:none; } "
"#category_new { border:1px solid #cdf; padding: 0 4px 2px; } #category_comment { border:1px solid #cdf; padding: 0 4px 1px 4px; } #category_movie_wrap, .category_movie_wrap { padding:0; border:none; } "
".category_new { border: 1px solid #ccf; padding: 1px 4px 0 4px; height: 274px; } .category_comment { border:1px solid #ccf; padding: 1px 4px 0 4px; height: 274px; } "
".mov_thumb { padding: 4px 3px; } .mov_thumb img { width: 130px; } .mov_length { font-size: 11px; padding: 0 2px; } </style>\n\n)"
"|$NEST(<div,*class=$AV(dot_2)*,</div>) $NEST(<table,[^>]++width=$AV(624)*<a href=$AV(*/rd.nicovideo.jp/cc/viedotop_wadai/*)*,</table>)"
"|$NEST(<p,[^>]++class=$AV(btn_refresh)*,</p>)"
"|(<h3>)\#([%E4][%BA][%BA][%E6][%B0][%97][%E3][%81][%AE][%E3][%82][%BF][%E3][%82][%B0])\1$SET(#=<a href="javascript:void(0)" style="text-decoration:none;" onclick="$('tag_open_p').toggle();">\1</a>)"
"(?++<div)\#(^(^[^>]++class="category_taglist))$SET(#= id="tag_open_p" style="display:none;")"
"|$NEST(<li,[^>]++id=$AV(item[0-9]+_top_thumb)*<a[^>]++(href=$AV(/watch/$LST(NGtitle)((^?)|\?*))|title=$AV(*$LST(NGtitle)*))*,</li>)"
"|(^(^id="content_360"))$STOP()"
Replace = "\@"
右列も削除する場合は、一番下の行を |(id=$AV(content_360))\#$SET(#= style="display:none;")$STOP() に変更してください。
・ JAVA処理で内容をアップデートさせている箇所「新しくコメントされた動画が~件あります」と、「人気タグ一覧」は非表示になっています。
「人気タグ」の文字をクリックすると、タグの一覧が表示されます。
(しかし、タグはリンクではなくJAVA処理のようなので、タグをクリックするとフィルターが利かなくなります。フィルターが利かなくなった場合、F5リロードなどで元に戻してください)
※9行目の$NESTを削除すると「新しくコメントされた動画が~件あります」が復活します。

従来のNGtitleはNG動画を削除しますが、こちらは隠すだけ。"NG"をクリックすればNG動画を確認できます。
NGtitleと併用する時はNGtitleのURLマッチを「$TYPE(htm)www.nicovideo.jp/(^related_tag|watch|ranking)」にしてください。
※チャンネル、コミュニティ動画は削除できません
[Patterns]
Name = "Nico: Hide Ranking NGtitle (100509)"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/ranking/"
Limit = 4096
Match = "$NEST(<div,\sid=$AV(\0)\sclass="thumb_frm"\sstyle=$AV(\1)>("
"\s<table([^>]+)\2"
"*<span\sstyle="font-size:[0-9]+px; line-height:1;">([^<]+)\3"
"*<a\s(^(^[^>]++class="watch"))"
"[^>]++href=$AV(watch/\9)$SET(vid=\9)"
"[^>]+>([^<]+)\9$SET(title=\9)"
"</a></h3>\s<p\sclass="font12">([^<]+)\9$SET(des=\9)"
"($TST(vid=($LST(NGtitle))\4)"
"|$TST(title=*($LST(NGtitle))\4*)"
"|$TST(des=*($LST(NGtitle))\4*)$SET(5= - C)"
")*)\6,</div>)"
Replace = "<table\2>\n<tr style="font-size:x-small;">\n"
"<td style="width:132px; text-align:right;">\3位 - - - <a href="javascript:void(0)" onClick="$('\0').toggle()">NG</a></td>\n"
"<td style="width:100px; padding-left:12px;">[ \4 ]\5</td>\n"
"<td>$GET(title)</td>\n"
"</tr></table>"
"<div id="\0" class="thumb_frm" style="\1 display:none;" >\6</div>"
作者コメントに反応させたくない場合はマッチ部分10行目をすべて削除

動画のTitleの横にコピーボタンを作成し、ボタンをクリックすると、
# Title名
変換されたコード
と言う感じでクリップボードにTitleと変換後のコードがコピーされる。
[Patterns]
Name = "Nico: Title2ClipBoard Copy1 (071221)"
Active = TRUE
Multi = TRUE
URL = "www.nicovideo.jp/((^?)|\?g=|search|tag|recent|newarrival)$TYPE(htm)"
Limit = 4096
Match = "$NEST((<td[^>]+>)\#,(\s+<div\sclass=$AV(thumb_frm))\#"
" (*$NEST(<a,\sclass=$AV(video)[^>]+>\0,</a>))\#\2,(</td>)\3)"
Replace = "\@<button onClick='title2ClipBoard("\0")'>copy</button>\2\3"
Name = "Nico: Title2ClipBoard Copy2 (120721)"
Active = TRUE
URL = "www.nicovideo.jp/((^?)|\?g=|search|tag|recent|newarrival)$TYPE(htm)"
Limit = 256
Match = "</head>$STOP()"
Replace = "<script type="text/javascript" charset="utf-8" src="http://local.ptron/title2ClipBoard.js" defer></script>"
"</head>"

[NG]をクリックすればNGにしたい動画のアドレスがNGtitle.txtに追加されます。NGtitle.txtはUTF-8で保存してください。
[N側をクリックすれば動画アドレスのみ追加。
G]側をクリックすれば動画アドレスとタイトルを追加。
チャンネル・コミュのタイトルまたはアイコンの後ろの[NG]をクリックすればチャンネル・コミュのアドレスとタイトルを追加。
[HTTP headers] In = FALSE Out = TRUE Key = "URL: nico Ad link to NGtitle (out)" Match = "(http://www.nicovideo.jp/*)\0\?NG(^$LST(NGtitle)(^?))(\1)" Replace = "$ADDLST(NGtitle,\1)$JUMP(\0)$STOP()"
[Patterns]
Name = "Nico: Ad link+name to NGtitle (091109)"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)(www|com|ch).nicovideo.jp/"
Limit = 256
Match = "([%E6][%8A][%95][%E7][%A8][%BF])\# (^(^</p> (<div\s[^>]+> (<p>|<h3>)|(</div>\s|)<p[^>]+>)<a\s[^>]++href=$AV(watch/\0)))$SET(#=<!---->\n"
"<a style="text-decoration:none; color:#F00;" title="address only" href="\u?NG\0"><strong>[N</strong></a>"
"<a style="text-decoration:none; color:#00F;" title="address\+name" href="watch/\0?tNG"><strong>G]</strong></a>)"
"|($NEST(<a,\shref=$AV(http://(com|ch)\1.nicovideo.jp/\2/((co|ch)[0-9]+)\0)><strong>*,</a>))\#$SET(#= "
"<a style="text-decoration:none; color:#000; font-size:10px;" title="\2 address\+name" href="http://\1.nicovideo.jp/\2/\0?tNG"><strong>[NG]</strong></a>)"
"|(<img\ssrc=$AV(*(channel)\1_cms/\0.gif)[^>]+>)\#$SET(#="
"<a style="text-decoration:none; color:#000; font-size:10px;" title="\1 address\+name" href="http://ch.nicovideo.jp/channel/\0?tNG"><strong>[NG]</strong></a>)"
"|<title>\1([%e2][%80][%90]| - )[%e3][%83][%8b][%e3][%82][%b3]"
"$URL(http://(www|com|ch).nicovideo.jp/[^/]+/\0\?tNG)($TST(\0=$LST(NGtitle))|$ADDLST(NGtitle,#\1)$ADDLST(NGtitle,\0))"
"$SET(#=\k<script type="text/javascript"> if (history.length) history.back(); else (window.open('','_top').opener=top).close(); </script>)"
Replace = "\@"
※NicoVideo: title と併用する場合、それより前(上)にしないと G] が効きません
登録時に視聴履歴に残るのが嫌な方は下のフィルタを入れてください
[HTTP headers] In = TRUE Out = FALSE Key = "Set-Cookie: NGTitle (In)" URL = "www.nicovideo.jp/watch/*\?tNG" Match = "*"
※本体のマッチの部分を少し修正してみました(111214)
[Patterns]
Name = "Nico: Ad link+name to NGtitle (111214)"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/"
Limit = 1024
Match = "(class=$AV(viewing)[^>]+>[^<]+|</strong> [%E6][%8A][%95][%E7][%A8][%BF](</span>|)|<p class=$AV(date)[^>]+>($NEST(<span>,</span>)|)[^<]+)\#"
"(^(^($NEST(<span,</span>)|</p>|)*<a\s(class=$AV(watch)\s|)href=$AV((/|)watch/(([a-z0-9]+)\0((^?)|\?*)))))($SET(#=)$URL(*/my/history)|$SET(#=\n))"
"$SET(#=<span><a style="font-size:10px; text-decoration:none; color:#F00;" title="address only" href="\u?NG\0"><b>[N</b></a>"
"<a style="font-size:10px; text-decoration:none; color:#00F;" title="address\+name" href="watch/\0?tNG"><b>G]</b></a></span>)"
"|<title>\1( [%e2][%80][%90] | - )[%e3][%83][%8b][%e3][%82][%b3]"
"$URL(http://www.nicovideo.jp/[^/]+/\0\?tNG)($TST(\0=$LST(NGtitle))|$ADDLST(NGtitle,#\1)$ADDLST(NGtitle,\0))"
"$SET(#=\k<script type="text/javascript"> if (history.length) history.back(); else (window.open('','_top').opener=top).close(); </script>)"
Replace = "\@"
(2011年12月06日) 動画ID(sm12345678)の後ろに ?access_from= と続いているURLの動画に対応。
(2011年12月14日) リニューアル総合ランキングとTopPageに対応するように修正。
| G]側について |

リンクを押したときに検索バーの内容を
# 検索バーの内容
マッチ用の文字列
の形式でリストに追加してページをリロードする
動画ページでリンクを押した場合は
# 動画タイトル
動画ID
の形式でリストに追加して前のページに戻る(釣られたときとか用)
[Patterns]
Name = "Nico:addlist from searchbar (NGtitle.txt) (090407)"
Active = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/search/NGtitle/(vid/[^/]+/|)((%[a-z0-9][a-z0-9])\0$SET(ng=$GET(ng)[\0])|(?)\0$SET(ng=$GET(ng)$WESC(\0)))+"
Limit = 512
Match = "(^(^var\sq=$AV(NGtitle/vid/\0/\1)))$ADDLST(NGtitle,\r\n# $WESC(\1))$ADDLST(NGtitle,\r\n\0)$STOP()"
"|(^(^var\sq=$AV(NGtitle/\0)))$ADDLST(NGtitle,\r\n# $WESC(\0))$ADDLST(NGtitle,\r\n$GET(ng))$STOP()"
次のリンクを他のフィルタ等でページの適当な場所に挿入しておく
<a href="javascript:void(0);" onclick="
if(window.Video){
var title=so.getVariable('wv_title');if(title=='-') title=so.getVariable('thumbTitle');
new Ajax.Request('http://www.nicovideo.jp/search/NGtitle/vid/'+Video.id+'/'+title,{onSuccess:function(){ if(document.referrer.substr(0,0)+"http://abc.s65.xrea.com/prox/wiki/index.php".substr(0,0)+"http://abc.s65.xrea.com/prox/wiki/index.php".substr(0,0)+"http://abc.s65.xrea.com/prox/wiki/index.php".substr(0,0)+"http://abc.s65.xrea.com/prox/wiki/index.php".substr(0,0)+"http://abc.s65.xrea.com/prox/wiki/?cmd=edit&page=%E3%83%95%E3%82%A3%E3%83%AB%E3%82%BF%E3%80%81%E3%83%AA%E3%82%B9%E3%83%88%E5%85%AC%E9%96%8B%2Fnicovideo".length) location.href=document.referrer.substr(0,0)+"http://abc.s65.xrea.com/prox/wiki/index.php".substr(0,0)+"http://abc.s65.xrea.com/prox/wiki/index.php".substr(0,0)+"http://abc.s65.xrea.com/prox/wiki/index.php".substr(0,0)+"http://abc.s65.xrea.com/prox/wiki/index.php".substr(0,0)+"http://abc.s65.xrea.com/prox/wiki/?cmd=edit&page=%E3%83%95%E3%82%A3%E3%83%AB%E3%82%BF%E3%80%81%E3%83%AA%E3%82%B9%E3%83%88%E5%85%AC%E9%96%8B%2Fnicovideo"; }});
} else if($F('bar_search').strip()!='') new Ajax.Request('http://www.nicovideo.jp/search/NGtitle/'+encodeURIComponent($F('bar_search').strip()),{onSuccess:function(){ location.reload(); }});
">NG</a>

動画ページでリストで指定した文字列を含むタグを非表示にします。
リストの記述法はNG WORDと同様です。
[Blocklists] List.NGtag = "..\Lists\NGtag.txt"
[Patterns]
Name = "NicoVideo: NGtag (080228) test01"
Active = TRUE
URL = "www.nicovideo.jp/$TYPE(htm)"
Limit = 512
Match = "$NEST(<a\s,[^>]++href=$AV((http://www.nicovideo.jp/|)tag/*)[^>]+>*$LST(NGtag)*,</a>)"
"(\s+$NEST(<span,</span>)|)(\s+\ \ |)+"

NG TAGに一致した場合、自動的に一つ前のページに戻るか、ページを閉じる
[Patterns]
Name = "NicoVideo: NG-TAG (watch, javascript) (081106)"
Active = TRUE
Multi = TRUE
URL = "[^/.]+.nicovideo.jp/watch/?$TYPE(htm)"
Limit = 2048
Match = "Video={*</script>&&\0"
Replace = "$STOP()\0\r\n<script type="text/javascript" charset="utf-8" src="http://local.ptron/NicoVideo_NG-TAG.js"></script>"

| A(B|)C | AC又はABCがあれば削除 |
| A(B|C)D | ABDまたはACDがあれば削除 |
| A(^?) | 末尾がAなら削除 |
| A(^B) | Aがあれば削除、ただし直後がBなら削除しない |
| A+ | 0個以上のAがあれば削除(XY+Zのように使う) |
| A+{n} | Aがn回連続していれば削除(nは適用したい数に置き換える) |
| A*B | A以降にBがあれば削除 |
| (*(A|B|C))++{2} | 「A・B・Cいずれか」が2個あれば削除 |
※使用時は全角大英字を削除したい文字列に置き換えて下さい
※マッチングルールは組み合わせても使用できますので参考リスト参照の下色々試してみて下さい
※訂正・追加お願いします。


タスクバーのタイトルや、タブのタイトルが見やすくなる
[Patterns] Name = "NicoVideo: title [2010/10/30]" Active = TRUE URL = "www.nicovideo.jp/$TYPE(htm)" Limit = 256 Match = "$NEST(<title>, \0 [%E2][%80][%90] [%E3][%83][%8B][%E3][%82][%B3][%E3][%83][%8B][%E3][%82][%B3][%E5][%8B][%95][%E7][%94][%BB] \(*\) ,</title>)" Replace = "<title>\0</title>$STOP()"

タブブラウザのタブ上でのタイトル表示を見易くすることよりもブラウザの履歴の中からニコニコ動画を探し易くすることに重点を置いて作りました。
タグ、動画検索にも対応。
[Patterns]
Name = "NicoNico: Replace title [2008/02/10] - 186 for 202"
Active = TRUE
URL = "(www.|tw.)nicovideo.jp/$TYPE(htm)"
Limit = 512
Match = "<title>\s+([%E3][%82][%AD][%E3][%83][%BC][%E3][%83][%AF][%E3][%83][%BC][%E3][%83][%89]"
"[%E6][%A4][%9C][%E7][%B4][%A2]$SET(1=N-S- )"
"|[%E3][%82][%BF][%E3][%82][%B0][%E6][%A4][%9C][%E7][%B4][%A2]$SET(1=N-TAG- )"
"|([%E3][%83][%9E][%E3][%82][%A4][%E3][%83][%AA][%E3][%82][%B9][%E3][%83][%88])\4$SET(1=N- \4 )"
"|($URL(http://[^/]++.nicovideo.jp/watch/)$SET(1=N: )|$SET(1=N- )))\s+([^>]++)\2( [%e2][%80][%90]| -)\s+"
"[%e3][%83][%8b][%e3][%82][%b3][%e3][%83][%8b][%e3][%82][%b3][%e5][%8b][%95][%e7][%94][%bb]"
"\s+\([^)]+\)\s+</title>$SET(0=<title>\1\2</title>)"
"|"
"(^(^<a\s[^>]++class=$AV(tab0)[^>]+>( <[a-z][^>]+> )+([^<]+)\1 </))"
"$SET(0=\r\n<script type="text/javascript">document.title = "N-TAB- \1";</script>\r\n)"
Replace = "\0$STOP()"


カテゴリタグの選択時にフィルタが無効化されるのを防ぎます。検索用には必須。
[Patterns] Name = "Nico: Top CategoryTag Replace (090211) HBN" Active = TRUE URL = "(www|tw).nicovideo.jp/((^?)|\?g=)$TYPE(htm)" Limit = 256 Match = "$NEST(<a,(\sclass=$AV(tab_*)[^>]++)\1\sonclick=$AV(switchCategoryTag*)\2,>)" Replace = "<a\1\2>"

[Patterns] Name = "NicoVideo: Del Category" Active = TRUE URL = "(www|tw).nicovideo.jp/$TYPE(htm)" Match = "<script\s[^>]++src=$AV(*/category.js*)*</script>"
topページの【トップ】 下のカテゴリ一覧からカテゴリボタンまでを全部消します。

[Patterns]
Name = "Nico: Top CategoryTag Del (080531) test02"
Active = TRUE
Multi = TRUE
URL = "(www|tw).nicovideo.jp/((^?)|\?g=)$TYPE(htm)"
Limit = 512
Match = "$NEST(<a,*id=$AV(tabA_category_(任意のカテゴリタグ))*,</a>)"
"|$NEST(<td>,<a\sclass*id=$AV(tabB_category_(任意のカテゴリタグ))*,</td>)"
※任意のカテゴリタグと書かれてる所に消したいカテゴリタグに文字を置き換える。 複数登録する場合は"|"で区切る 例:anime|game
標準モードでもRC2モードで動作します。

右列の無駄な広告などを削除+並べ替えをする
どちらでも使えます。
[Patterns]
Name = "Nico : right edit Plus(090401)"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/((^?)|\?g=)"
Limit = 10000
Match = "onclick=$AV(switchCategoryTag*)"
"|($NEST(<div,\sclass=$AV(mb8p4)*web_pc_premium*,</div>))\0$SET(cm=\0)"
"|($NEST(<div,\sclass=$AV(mb8p4)*href=$AV(http://com.nicovideo.jp/channel/*)*,</div>))\1$SET(cha=\1)"
"|($NEST(<div,\sclass=$AV(mb8p4)*href=$AV(ranking/*/*/all)*,</div>))\2$SET(rank=\2)"
"|($NEST(<div,\sclass=$AV(mb8p4)*href=$AV(http://com.nicovideo.jp/community/*)*,</div>))\3$SET(comm=\3)"
"|($NEST(<div,\sclass=$AV(mb8p4)*href=$AV(newarrival)*,</div>))\4$SET(newa=\4)"
"|($NEST(<div,\sclass=$AV(mb8p4)*href=$AV(http://ichiba.nicovideo.jp/*)*,</div>))\5$SET(ichi=\5)"
"$SET(#="
"$GET(cm)"
"$GET(cha)"
"$GET(rank)"
"$GET(comm)"
"$GET(newa)"
"$GET(ichi)"
")$STOP()"
Replace = "\@"
[Patterns]
Name = "Nico: right edit (090501)"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/((^?)|\?g=)"
Limit = 8192
Match = "onclick=$AV(switchCategoryTag*)"
"|$NEST(<tr,><td>( <strong>[%e9][%96][%a2][%e9][%80][%a3]*)\0,</tr>)$SET(tag=<div class="mb8p4" style="font-size:12px;"><div class="ctg_right_frm">\0\n</div></div>\n)"
"|($NEST(<div,\sclass=$AV(mb8p4)> <div\sid=$AV(web_pc_premium)*,</div>) <!----> )\0$SET(cm1=\0)"
"|($NEST(<!--[%e2][%86][%93][%e3][%83][%81],[%e3][%83][%ab][%e2][%86][%91]-->) )\0$SET(channel=\0)"
"|($NEST(<!--[%e2][%86][%93][%e5][%8b][%95],<!--[%e2][%86][%91][%e5][%8b][%95][^>]+>) )\0$SET(ranking=\0)"
"|(<!----> $NEST(<table,\swidth=$AV(100%)*,</table>) $NEST(<textarea,</textarea>) $NEST(<script,</script>) <!----> )\0$SET(cm2=\0)"
"|($NEST(<!--[%e2][%86][%93][%e9][%96][%a2][%e9][%80][%a3][%e3][%82][%b3],[%e3][%82][%a3][%e2][%86][%91]-->) )\0$SET(community=\0)"
"|($NEST(<!--[%e2][%86][%93][%e6][%96][%b0],[%e7][%94][%bb][%e2][%86][%91]-->) )\0$SET(newarrival=\0)"
"|($NEST(<!--[%e2][%86][%93][%e5][%b8][%82],<!--[%e2][%86][%91][%e5][%b8][%82][^>]+>) )\0$SET(ichiba=\0)"
"|($NEST(<div,\sclass=$AV(mb8p4)> <p\sid=$AV(web_pc_*)*,</div>) $NEST(<script,</script>) <!----> )\0$SET(cm3=\0)"
"|(<!--[%e2][%86][%91][%e5][%8f][%b3][^>]+>)\0$SET(#=\n"
"$GET(ranking)"
"$GET(newarrival)"
"$GET(tag)"
"$GET(channel)"
"$GET(community)"
"$GET(ichiba)"
"$GET(cm1)"
"$GET(cm2)"
"$GET(cm3)"
"\0)$STOP()"
Replace = "\@"
自分の好みに合わせて、「$GET()」ではじまる行を並べ替えたり、削除したりしてトップページ右列を整頓する。
ranking:動画ランキング newarrival:新着投稿動画 tag:注目のタグ channel:チャンネル community:コミュニティ ichiba:市場ランキング cm1、2、3:広告


[Patterns]
Name = "NicoVideo: Close secret user profile (080510)"
Active = TRUE
URL = "(www|tw).nicovideo.jp/user/[0-9]"
Limit = 128
Match = "(^(^<h1>$STOP()[%E9][%9D][%9E][%E5][%85][%AC][%E9][%96][%8B]))"
Replace = "<script type="text/javascript">"
"if (history.length) history.back();"
"else (window.open('','_top').opener=top).close();"
"</script>\k"


[Patterns]
Name = "Nico: Mylist 1line => 2line (100224)"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/mylist/"
Limit = 256
Match = "(<div class=$AV(SYS_box_item))\#$SET(#="
"{math assign="line" equation="document.getElementById('SYS_page_items').childNodes.length%4"}"
" style="{if \$line==0}clear:left;float:left;{else}margin-left:492px;{/if}width:492px;")"
"([^<]++<table width=)\#$AV(672)$SET(#="492")"
"|($NEST(<div, style="padding:4px;*<p class=$AV(dot_2)*,</div>))\#$SET(#={if \$line>0}\n<div style="clear:left;"></div>{/if})"
"|(<body[^>]+>)\#$SET(#=\n<style type="text/css"><!-- .content_672 {overflow:visible;width:100%;} .content_312 {display:none;} --></style>)"
Replace = "\@"

[Patterns]
Name = "Nico: history 1line => 2line (100610)"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/history"
Limit = 256
Match = "(<body(\s[^>]+|)>)\#$SET(#=\n<style type="text/css"><!-- .content_672 { overflow:visible; width:; } .content_312 { display:none; } --></style>)"
"|(</a></p>\s)\#(^(^<table\swidth="672"))$SET(#=<table border="0" cellspacing="0" cellpadding="0"><tr valign="top">\n)"
"|(^(^<table\swidth="672"))($TST(c=1111)$SET(#=</tr><tr valign="top">\n)$SET(c=)|)$SET(c=$GET(c)1)($TST(c=1)|$TST(c=111))$SET(#=<td>\n)"
"|(</table>)\#$SET(#=\n</td>)((^(^\s<div\sstyle="margin:0 0 16px;">))$SET(#=\n</tr></table>)$STOP()|(^(^\s<table\swidth="672")))"
"|(width=\")\#672$SET(#=492)"
"|(<strong>)\#20\1[%E5][%B9][%B4]\2[%E6][%9C][%88]\3[%E6][%97][%A5]$SET(#=20\1/\2/\3)"
Replace = "\@"

[Patterns]
Name = "Nico: history_remove"
Active = TRUE
Multi = TRUE
URL = "www.nicovideo.jp/history"
Limit = 32767
Match = "\( [%e5][%80][%8b][%e5][%88][%a5][%e3][%81][%ab][%e6][%b6][%88]"
"[%e3][%81][%99][%e4][%ba][%8b][%e3][%81][%af][%e3][%81][%a7]"
"[%e3][%81][%8d][%e3][%81][%be][%e3][%81][%9b][%e3][%82][%93] \)"
"|$NEST(<tr, (valign="top"> $NEST(<td,> <p><a href="watch/\1">"
"<img*,</td>) <td width="100%">)\2\3,</tr>) $SET(0=&#)$SET(#="
"<tr class="history_remove" id="history_\1" \2"
"<input style="float:right;" type="button" class="submit" value="
""\0x524A;\0x9664;" title="" onclick="history_remove('\1')"></input>\3</tr>)"
"|(^(^</body))$STOP()$SET(#=\n<script>function history_remove(id){"
"Element.remove($('history_'+id).parentNode.parentNode);"
"(Cookie.get('nicohistory')+',').match('^(.*)('+id+':[^,]+,)(.*)$');"
"if(RegExp.$2){Cookie.set('nicohistory',RegExp.$1+RegExp.$3.slice(0,-1),9999999999,'.nicovideo.jp','/')}"
"if(document.getElementsByClassName('history_remove').length==0){location.reload()}}\n</script>\n)"
Replace = "\@"
修正してみました(101101)
[Patterns]
Name = "Nico: history_remove [101101] test"
Active = TRUE
Multi = TRUE
URL = "www.nicovideo.jp/my/history"
Limit = 32767
Match = "(<li)\#(^(^>[^<]+<a href=$AV(watch/\1)))$SET(#= class="history_remove" id="history_\1")([^>]+>[^<]+$NEST(<a,</a>))\#"
"$SET(#=\n<div class="buttons" style="float:right; margin:8px 5px 0 0;">"
"<a href="javascript:void(0)" class="editBtn" onclick="history_remove('\1');">削除</a></div>)"
"|(class=$AV(mylistVideo))\#$SET(#= style="position:static;")"
"|(^(^</body))$STOP()$SET(#=<script type="text/javascript"><!--\n"
"function history_remove(id){\n"
"Element.remove($('history_'+id));\n"
"(Cookie.get('nicohistory')+',').match('^(.*)('+id+':[^,]+,)(.*)$');\n"
"if(RegExp.$2){Cookie.set('nicohistory',RegExp.$1+RegExp.$3.slice(0,-1),9999999999,'.nicovideo.jp','/')}\n"
"if(document.getElementsByClassName('history_remove').length==0){location.reload()}}\n--></script>\n)"
Replace = "\@"


Ranking-PlayingTimeChecker+2line (100624).txt
こんな感じになります
Ranking-PlayingTimeChecker+2line.png
※Hide Ranking NGtitleと併用する場合はそちらの方の優先順位を上にしてください

[Patterns]
Name = "Nico: Ranking-PlayingTimeChecker-[MULTI TIME]+View+ (091106a)"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/ranking(^/*/*/ichiba)"
Limit = 4096
Match = "(<div[^>]++class=$AV(thumb_frm))\1[^>]+>(*<p class="vinfo_length"><span)\2>"
"(([#0:2])\3$SET(4=background:#efefef; border:#ECECEC)$SET(9=font-size:12px; background:gray;)"
"|([#3:6])\3$SET(4=background:#e7e7e7; border:#E4E4E4)$SET(9=font-size:12px; background:black;)"
"|([#7:12])\3$SET(4=background:ghostwhite; border:lavender)$SET(9=font-size:12px; background:royalblue;)"
"|([#13:22])\3$SET(4=background:#eFeFe5; border:#FDF6C9)$SET(9=font-size:12px; background:orange;)"
"|([#23:*])\3$SET(4=background:#eFe9e9; border:mistyrose)$SET(9=font-size:12px; background:red;))"
"(*[%E7][%94][%9F] <strong)\5>"
"$URL(*/(view)$SET(r_00=\5 style="font-size:120%;">)"
"|*$SET(r_00=\5>))"
"(([0-9]+,[0-9]+,[0-9]+)\6$SET(r_04=navy)$SET(7= solid 4px; padding:4px; color:$GET(r_04)\;)"
"|([#500:999],[0-9]+)\6$SET(r_04=#000064)$SET(7= solid 3px; padding:5px; color:$GET(r_04)\;)"
"|([#100:499],[0-9]+)\6$SET(r_04=#000049)$SET(7= double 3px; padding:5px; color:$GET(r_04)\;)"
"|([#10:99],[0-9]+)\6$SET(r_04=black)$SET(7= solid 2px; padding:6px; color:$GET(r_04)\;)"
"|([1-9],[0-9]+)\6$SET(r_04=#404040)$SET(7= solid 1px; padding:7px; color:$GET(r_04)\;)"
"|([0-9]+{3})\6$SET(r_04=#555555)$SET(7= dotted 0px; padding:8px; color:$GET(r_04)\;)"
"|([#0:99])\6$SET(r_04=gray)$SET(7= dashed 0px; padding:8px; color:$GET(r_04)\;))"
"($URL(*/(view|fav))(*</p>)\8$SET(r_01=\8)"
"|$URL(*/res)(*<strong)\0>(*</p>)\8$SET(r_01=\0 style="font-size:120%;">\8)"
"|(*<a[^>]+><strong)\0>(*</p>)\8$SET(r_01=\0 style="font-size:120%;">\8))"
"$SET(#=\1 style="\4\7">\2 style="\9">\3$GET(r_00)\6$GET(r_01))"
"|(<a href="openlist/[a-z][a-z][0-9]+")\#$SET(#= style="color:$GET(r_04);")"
""
"|([%E5][%86][%8D][%E7][%94][%9F] <strong[^>]+>([0-9,]+)\9</strong>*"
"<strong[^>]+>([0-9,]+)\0</strong>)\#"
"(*<strong[^>]+>([0-9,]+)\1</strong></a>)\2$SET(#="
"<script>document.write(' / <b>'+(('\0').replace(/,/g, '')-0 ? Math.round(('\0').replace(/,/g,'') / "
"('\9').replace(/,/g,'') *1000)/10 : 0)+'%</b>')</script>"
"\2"
"<script>document.write(' / <b>'+(('\1').replace(/,/g, '')-0 ? Math.round(('\1').replace(/,/g,'') / "
"('\9').replace(/,/g,'') *1000)/10 : 0)+'%</b>')</script>"
")"
Replace = "\@"

[Patterns]
Name = "Nico: Ranking-2line (091107)"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/ranking/"
Limit = 256
Match = "(<body[^>]+>)\#$SET(#=\n<style type="text/css"><!--\n"
".body_984 {overflow:visible;width:1300px} .content_672 {overflow:visible;width:984px;}"
".list_count_2 {font-size:12px; width:42px; font-weight:bold; text-align:right;}"
"\n--></style>\n)"
""
"|([%E6][%8A][%9E][%E2][%86][%91]-->\s</div>\s)\#(^(^<!--[%E2][%86][%93]id))"
"$SET(#=<table class="2line_table" border="0" cellspacing="0" cellpadding="0">\n"
"<tr class="2line_tr" valign="top">\n<td class="2line_td">\n)$SET(line=1)"
"|(</div>\s</div>\s<!--[%E2][%86][%91]id[^>]+>\s)\#$SET(#=</td><!--2line_td-->\n)"
"((^<!--[%E2][%86][%93]id)$SET(#=</tr><!--2line_tr-->\n</table><!--2line_table-->\n)|"
"($TST($GET(line)=11)$SET(line=1)$SET(#=</tr><!--2line_tr-->\n<tr class="2line_tr" valign="top">\n)|$SET(line=11))"
"$SET(#=<td class="2line_td">\n))"
""
"|(<table width=")\#648$SET(#=468)"
"|(style="width:)\#(648px$SET(#=468px)|484px$SET(#=100%))"
"|<div class="list_count">$SET(#=<div class="list_count_2">)"
Replace = "\@"

[Patterns]
Name = "Nico: Ranking-2line+smart(091107)"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/ranking/"
Limit = 16000
Match = "(<body[^>]+>)\#$SET(#=\n<style type="text/css"><!--\n"
".body_984 {width:984px; position:relative;} .content_672 {width:984px;} .content_312 {position:absolute; right:0px; top:35px;}"
".list_count_2 {font-size:12px; width:42px; font-weight:bold; text-align:right;}"
"\n--></style>\n)"
""
"|([%E6][%8A][%9E][%E2][%86][%91]-->\s</div>\s)\#(^(^<!--[%E2][%86][%93]id))"
"$SET(#=<table class="2line_table" border="0" cellspacing="0" cellpadding="0">\n"
"<tr class="2line_tr" valign="top">\n<td class="2line_td">\n)$SET(line=1)"
"|(</div>\s</div>\s<!--[%E2][%86][%91]id[^>]+>\s)\#$SET(#=</td><!--2line_td-->\n)"
"((^<!--[%E2][%86][%93]id)$SET(#=</tr><!--2line_tr-->\n</table><!--2line_table-->\n)|"
"($TST($GET(line)=11)$SET(line=1)$SET(#=</tr><!--2line_tr-->\n<tr class="2line_tr" valign="top">\n)|$SET(line=11))"
"$SET(#=<td class="2line_td">\n))"
""
"|(<table width=")\#648$SET(#=468)"
"|(style="width:)\#(648px$SET(#=468px)|484px$SET(#=100%))"
"|<div class="list_count">$SET(#=<div class="list_count_2">)"
""
"|(<img src="http://res.nimg.jp/img/_.gif" alt="" class="controller_frm")\#"
"$SET(#= onclick="$('controller').toggle();")"
"|(<div class="controller_bg")\#>$SET(#= id="controller" style="display:none;">$GET(PM))"
"|(<!--[%E2][%86][%93][%E3][%83][%9A][^>]+>\s<div[^>]+><p[^>]+>\s(<a*)\0</p>)\#$SET(PM=<p class="cal_txt">\0</p>)"
""
"|$NEST(<div, style="background:#111; color:#FFF*,</div>)"
"|$NEST(<table, width="312"*,</table>)"
"|$NEST(<div,[^<]++<[^>]++id=$AV(web_pc_pr(emium|ime))*,</div>)(\s$NEST(<script,</script>)|)"
"|$NEST(<table,\swidth=$AV(100%)*web_pc_megatext*,</table>)((^<!)?)++$NEST(<script,</script>)"
""
"|(<div id=$AV(item([0-9]+)\0))\#$SET(G=\0)$SET(#= onclick="$('DESC_\0').toggle();$('RES_\0').toggle();")"
"|(</h3>\s<p class="font12")\#$SET(#= id="DESC_$GET(G)" style="display:none")"
"|(<p class="vinfo_last_res")\#$SET(#= id="RES_$GET(G)" style="display:none")"
Replace = "\@"
・動画情報を幅いっぱいに表示 ・サムネ下の再生時間を投稿日の後ろに ・年号の20を削除(2009年→09年)
[Patterns]
Name = "Nico: Ranking adjuster (090402)"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/(ranking|mylist|history)"
Limit = 128
Match = "class=$AV(content_672)|width:(648)px;|width=$AV(664|672)"
"|<p\sclass=$AV(TXT12)[^>]+>(<strong>[0-9]++:[^<]+</strong>)\0</p>\s$SET(pt=\0)"
"|20([0-9][0-9][%e5][%b9][%b4])\#"
"|(</strong> [%e6][%8a][%95][%e7][%a8][%bf])\# (<br>|)$SET(#=\n 再生時間:$GET(pt)\n<br>)"
"|class=$AV(content_312)$SET(#=style="display:none;")$SET(pt=)$STOP()"
Replace = "\@"
Ranking adjuster (090402)を参考に作ってみました。
・動画情報を幅いっぱいに表示 ・サムネ上の再生時間を削除 ・サムネイルの右側のポイントを削除(換わりに 再生時間 [00:00] が付きます)・右列を非表示 ・その他
[Patterns]
Name = "Nico: Ranking adjuster [111216] b"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/ranking((^?)|\?page|/(^matrix))"
Limit = 512
Match = "\sclass=$AV(content_672)|\swidth=$AV(648)|\sstyle=$AV(width:648px;)"
"|$NEST(<p,[^>]++class=$AV(vinfo_length)><span>\1</span>,</p>)$SET(v_l=\1)"
"|(style="width:)\#476px;(^(^\soverflow))$SET(#=754px !important;)"
"|<strong>[%EF][%BC][%8B](<span[^>]++style=)\#$AV(*)$SET(#="color:#696F6F;")([^>]+>)\#[0-9,]+$SET(#= 再生時間 </span><strong>[$GET(v_l)]</strong>)</span></strong>"
"|(class=$AV(content_312))\#$SET(#= style="display:none;")$STOP()$SET(v_l=)"
""
"|([%E3][%83][%88][%E3][%83][%83][%E3][%83][%97][%E2][%86][%93]--> )\#(^(^<div id="ranking_cont))$SET(#=\n"
"<style type="text/css"> .pd1 { width:200px; float:left; } .pd2 { text-align:center; width:52px; font-size:14px; font-weight:bold; } .pd3 img { width:130px; height:100px; border:2px solid #454A4A; margin:0 4px;} "
".date > span { color:#000 !important; } #ranking_main { width:976px; position:relative; } #ranking_sub { width:976px; position:absolute; }"
".userAd { background:#fff; } #head h1, #head > h1 + p , .pd5 , #ranking_sub h2 , #ranking_sub h3 , .ranking_cat_menu , .cat_wrap , #userAd_rank , #seiga_rank , #ichiba_rank { display:none; } .date { font-size:12px; } .ranking_btn { top:-5px; } </style>\n\n)"
"|<dl>$SET(#=<table class="pd1" cellspacing="0" cellpadding="0">\n<tr valign="top">\n) <dt>$SET(#=<td class="pd2">)(?++)\#"
"</dt>$SET(#=</td>) <dd>$SET(#=<td class="pd3">)(?++)\#<span class=$AV(length)>\2</span></dd> </dl>$SET(#=</td></tr></table>)$SET(v_lne=\2)"
"|(class="date"[^>]+>)\#$SET(#=<span>再生時間 <strong>[$GET(v_lne)]</strong> … </span>)"
"|<span class="score">[^<]+</span>"
"|(^(^<div id="ranking_sub"))$STOP()$SET(v_lne=)"
Replace = "\@"
※ランキングページの1列表示のみ対応しています。
※リニューアル総合ランキングにも対応してみました(改良点ある可能性も)

勝手にjavascriptで実装させてもらいました。(旧verは動かないのでコメントアウトして有ります。)
2010/02/20 サムネ画像の取得処理を変更。負荷が最小限になるように。
[Patterns]
Name = "Nico Ranking : Nico_Favorite_Ranking.js [100217]"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/ranking/"
Limit = 32
Match = "(id="switch"> <tr>)\#"
"$STOP()"
Replace = "\@<td id="Nico_Favorite_Ranking_container"></td>"
"<script type="text/javascript" src="http://local.ptron/Nico_Favorite_Ranking.js"></script>"
Nico_Favorite_Ranking.js
をhtmlフォルダへ保存
※埋込み位置の変更はフィルタを修正。
※1つ上の「ランキングのレイアウトを微調整」を使うと一部の機能が制限される可能性が有ります。
※1つ下の「カテゴリリンクをセレクトボックスに置換」との併用可能


自由にランキングページを行き来できるようにしてみた(JUMP]を押すまで移動しない)
毎時ランキングでも「総合」以外のカテゴリ選択可
ranking-select.txtをhtmlフォルダに
[Patterns]
Name = "Nico Ranking : Category -> select kai [10/03/04]"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/ranking"
Limit = 4096
Match = "$NEST(<table,\s([^>]++id="switch"[^>]+>)\0 <tr> <td>"
"<form name="sort_bigcategory">*</form></td>*"
",</table>)"
"$URL(http://www.nicovideo.jp/ranking/)"
"$SET(#=<table \0<tr><td><!--$FILE(../html/ranking-select.txt)</td></tr></table>)"
"|"
"(class="top_best20">\s<tr>)\#"
"$URL(http://www.nicovideo.jp/ranking(^?))"
"$STOP()"
"$SET(#=<tr><td><!--$FILE(../html/ranking-select.txt)</td></tr><tr>)"
"|"
"value="
"$URL(http://www.nicovideo.jp/ranking/\1/\2/([^?/]+)\3(([?/]*)\4|))"
"$SET(#=value=)"
"(("$TST(\3)")\#$SET(#= selected)"
"|("$TST(\2)")\#$SET(#= selected>)>"
"|("$TST(\1)")\#$SET(#= selected>)>($TST(\4=\?*)|$STOP())"
"|("$TST(\4)")\#$SET(#= selected>)>$STOP()"
")"
Replace = "\@"


旧ore-sortフィルタ(コメントアウトして有ります)を勝手にjavascriptで実装させてもらいました。
oreSort.jsをhtmlフォルダに
10/03/02 [.jsも入れ替え必要]・挿入場所の指定をフィルタで簡単に変更出来るように・仕様変更によるmyvideo除外(レイアウト変更によりソート不可能)
10/06/10 [.jsも入れ替え必要] 仕様変更に対応
10/09/02 [.jsも入れ替え必要] 仕様変更に対応
[Patterns]
Name = "Nico Search : Ore Sort.js [10/09/02]"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/(search|tag|recent|hotlist|newarrival)"
Limit = 2048
Match = "(^(^"
"$NEST(<td,\s*class="thumb_cols"*,</td>)"
"))"
"$STOP()"
Replace = "<td><nobr id="ore_sort_container"></nobr>"
"<script type="text/javascript" src="http://local.ptron/oreSort.js?0902"></script>"
"</td>"
※挿入する場所を入れ替える場合は、フィルタを変更してください(id="ore_sort_container"必須)

[HTTP headers] In = FALSE Out = TRUE Key = "URL: Nico Tag Redirect (out)" Match = "http://www.nicovideo.jp/tag/([^\?]+)\1(^?)" Replace = "$JUMP(http://www.nicovideo.jp/tag/\1?sort=f)"
sort=f 投稿日時が新しい sort=v 再生が多い sort=r コメントが多い sort=m マイリスト登録が多い sort=l 再生時間が長い
キーワード検索結果のソートを自動で変更 tag→search

並び替えが少し見やすくなる直感的に出来るようになる かも
[Patterns]
Name = "NicoVideo: select color (081206)"
Active = TRUE
Multi = TRUE
URL = "www.nicovideo.jp/(search/|tag/|mylist/)"
Limit = 512
Match = "<option\s\0(selected$SET(9=font-weight:bold;)|)\1>"
"([%e6][%8a][%95][%e7][%a8][%bf][%e3][%81][%8c][%e6][%96][%b0]$SET(#=#ffffaa;color:orange)"
"|[%e6][%8a][%95][%e7][%a8][%bf][%e3][%81][%8c][%e5][%8f][%a4]$SET(#=#ffffaa)"
"|[%e5][%86][%8d][%e7][%94][%9f][%e3][%81][%8c][%e5][%a4][%9a]$SET(#=#aaffaa;color:green)"
"|[%e5][%86][%8d][%e7][%94][%9f][%e3][%81][%8c][%e5][%b0][%91]$SET(#=#aaffaa)"
"|[%e3][%82][%b3][%e3][%83][%a1][%e3][%83][%b3][%e3][%83][%88][%e3][%81][%8c][%e6][%96][%b0]$SET(#=#aaaaff;color:blue)"
"|[%e3][%82][%b3][%e3][%83][%a1][%e3][%83][%b3][%e3][%83][%88][%e3][%81][%8c][%e5][%8f][%a4]$SET(#=#aaaaff)"
"|[%e3][%82][%b3][%e3][%83][%a1][%e3][%83][%b3][%e3][%83][%88][%e3][%81][%8c][%e5][%a4][%9a]$SET(#=#ffaaaa;color:red)"
"|[%e3][%82][%b3][%e3][%83][%a1][%e3][%83][%b3][%e3][%83][%88][%e3][%81][%8c][%e5][%b0][%91]$SET(#=#ffaaaa)"
"|[%e3][%83][%a1][%e3][%83][%a2][%e6][%98][%87]$SET(#=#aaffff;color:royalblue)"
"|[%e3][%83][%a1][%e3][%83][%a2][%e9][%99][%8d]$SET(#=#aaffff)"
"|[%e3][%82][%bf][%e3][%82][%a4][%e3][%83][%88][%e3][%83][%ab][%e6][%98][%87]$SET(#=#ffb6c1;color:magenta)"
"|[%e3][%82][%bf][%e3][%82][%a4][%e3][%83][%88][%e3][%83][%ab][%e9][%99][%8d]$SET(#=#ffb6c1)"
"|[%e3][%83][%9e][%e3][%82][%a4][%e3][%83][%aa][%e3][%82][%b9][%e3][%83][%88][%e3][%81][%8c][%e5][%a4][%9a]$SET(#=#ffaaff;color:purple)"
"|[%e3][%83][%9e][%e3][%82][%a4][%e3][%83][%aa][%e3][%82][%b9][%e3][%83][%88][%e3][%81][%8c][%e5][%b0][%91]$SET(#=#ffaaff)"
"|[%e8][%bf][%bd][%e5][%8a][%a0][%e3][%81][%8c][%e6][%96][%b0]$SET(#=#f8dc85;color:#ff612e)"
"|[%e8][%bf][%bd][%e5][%8a][%a0][%e3][%81][%8c][%e5][%8f][%a4]$SET(#=#f8dc85)"
"|[%e6][%99][%82][%e9][%96][%93][%e3][%81][%8c][%e9][%95][%b7]$SET(#=#ccddff;color:royalblue)"
"|[%e6][%99][%82][%e9][%96][%93][%e3][%81][%8c][%e7][%9f][%ad]$SET(#=#ccddff)"
"|*)\2</option>(^(^ </select>|))"
Replace = "<option style="\9background-color:\@" \0\1>\2</option>"
ぶち込むとこんな感じになる

myvideo修正
[Patterns]
Name = "Nico Search : select -> link [10/07/21]"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/(search|tag|user/[0-9]+/video)"
Limit = 1024
Match = "<td[^>]+> <form\sname=$AV(sort)[^>]+> <select[^>]+>$SET(#=<td class="font12"><span style="white-space:nowrap; margin:0 10px 0 0;">)"
"$SET(select_2_link=</span><span style="white-space:normal;"> </span><span style="white-space:nowrap; margin:0 10px 0 0;">)"
"|<option value=$AV((http://www.nicovideo.jp/(search|tag)*|/user/[0-9]+/video*)\0)\sselected>\1</option>"
"$SET(#=<a href="\0" style="color:#F00;"><strong>\1</strong></a>)"
"($TST(nico_select_alink=1)$SET(#=$GET(select_2_link))$SET(nico_select_alink=)"
"|$SET(nico_select_alink=1))"
"|<option value=$AV((http://www.nicovideo.jp/(search|tag)*|/user/[0-9]+/video*)\0)>\1</option>"
"$SET(#=<a href="\0">\1</a>)"
"($TST(nico_select_alink=1)$SET(#=$GET(select_2_link))$SET(nico_select_alink=)"
"|$SET(nico_select_alink=1))"
"|<span style="white-space:normal;"> </span><span style="white-space:nowrap;[^>]+> </select> </form> </td>"
"$SET(#=</td></tr></table><table width="672" cellpadding="4" cellspacing="0" summary="pager"><tr>)$STOP()"
"|(href="http://www.nicovideo.jp/search/[^?"]+)\#"$SET(#=?sort=f")"
"|(href="http://www.nicovideo.jp/tag/[^?"]+)\#"$SET(#=?sort=n")"
"|(href="/user/[0-9]+/video)\#"$SET(#=?sort=f")"
Replace = "\@"
偶数個ずつ並ぶように作り直してみました。


(原宿)用
[Patterns]
Name = "NicoVideo: search toka 1=>2 2=>3 4=>6 column [hrjk] (101108)"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/(search|tag|newarrival|recent|hotlist)"
Limit = 9600
Match = "(<div id="PAGEBODY"[^>]+>)\#"
"$SET(bg=background:#e7e7e7;)"
"$SET(waku=border:solid 1px #CFCFCF;)"
"$SET(border=0)"
"$SET(layout2=0)"
"$SET(layout3=1)"
"$SET(layout6=1)"
"$SET(rigtht_del=0)"
"$SET(seiga_del=0)"
"$SET(foot_del=1)"
"$SET(c2=478)$SET(c2b=476)"
"$SET(c3=319)$SET(c3b=317)"
"$SET(c6=158)$SET(c6b=156)"
"$SET(left_width=984)"
"$SET(#=<span style="width:$GET(left_width)px; float:left;">)"
"|(<div class=$AV(content_672))\0>"
"($TST($GET(border)=1)$SET(bg=$GET(bg) $GET(waku))$SET(c2=$GET(c2b))$SET(c3=$GET(c3b))$SET(c6=$GET(c6b))|)"
"($TST($GET(rigtht_del)=0)$SET(1=\n.body_984{width:1296px; margin:0 auto 0 auto;})"
"|$TST($GET(rigtht_del)=1)$SET(1=\n.content_312{display:none;}))"
"($TST($GET(seiga_del)=1)$SET(2=\n#seiga{display:none;})|)"
"($TST($GET(foot_del)=1)$SET(3=\n#web_pc_footer_box, #PAGEFOOTER{display:none;})|)"
"$SET(#=</span>\0 >\n<style type="text/css"><!--\n.content_672{width:$GET(left_width)px;float:left;}\n"
".thumb_col_1{width:$GET(c2)px; padding:2px 2px 2px 2px; margin:4px 4px 4px 4px; $GET(bg)}\n"
".thumb_col_2{width:$GET(c3)px; padding:2px 0px 2px 0px; margin:4px 4px 4px 4px; $GET(bg)}\n"
".thumb_col_4{width:$GET(c6)px; padding:2px 0px 2px 0px; margin:3px 3px 3px 3px; $GET(bg)}\n"
".uad_thumbfrm{background:#e9eFeF;}\n"
".vinfo_last_res{background:#eFeFeF;}"
"\1\2\3\n--></style>)"
"|(<table width=")\#672$SET(#=$GET(left_width))([^>]++cellspacing="0">)\#"
"|/img/common/thumb_cols/col$SET(#=http://local.ptron/col236)"
"|(/img/x.gif"\salt=")\#1(\w"[^\r\n]++alt=")\02(\w"[^\r\n]++alt=")\14$SET(#=2\03\16)"
"|(div style="width:)\#[^>]++( overflow:hidden;"> <div style="clear:both;"> )\0$SET(#=$GET(left_width)px;\0)"
"(<!----> <div class="thumb_col_(1$SET(c236=2)|2$SET(c236=3)|4$SET(c236=6))$SET(column=0))\#"
"|</div>\s<div style="clear:both;"[^>]+>(^<!)"
"|(> )\#<div[ ](class="thumb_col_)\0($TST(column=0)$SET(column=)(?)\1|"
"((1)\1$SET(column=$GET(column)1)($TST(column=1+{2})$SET(#=</div><div style="clear:both;">\n)$SET(column=)|)"
"|(2)\1$SET(column=$GET(column)1)($TST(column=1+{3})$SET(#=</div><div style="clear:both;">\n)$SET(column=)|)"
"|(4)\1$SET(column=$GET(column)1)($TST(column=1+{6})$SET(#=</div><div style="clear:both;">\n)$SET(column=)|)"
"))$SET(#=<div \0\1)"
"|$NEST(<div,( class="thumb_col_4")\0>\1,(</div>)\2)($TST($GET(border)=1)$SET(3=3)|$SET(3=4))$SET(#=<div\0 ><div style="padding:\3px;">\1\2\2)"
"|(<table[^>]++width=")\#(624|312)$SET(#=100%)"
"|(<a[^>]++href="watch/[^<]+<[^>]++)\#(class="img_std(96|128)"|(class="img_std96 lazyimage")\0)(^(^[^>]+></a></p>))"
"$TST($GET(c236)=(2|3|6))$SET(#=width="130"\0 style="border:solid 2px #333;")"
"|<div style="width:412px; $SET(#=<div style=")"
"|(<p class="font1)\#6$SET(#=4)("[^>]+>)\#$NEST(<nobr>,\#,</nobr>)"
"|(d style=")\#background:url\('http://res.nimg.jp/img/common/thumb/split_line.png'\)[^"]+$SET(#=width:100%;)"
"|(<div style="clear:both;)\#$SET(#= width:$GET(left_width)px;)("><!)\#"
"|\s($NEST(<p, class="font12"\s*<span class="search_word">*,</p>)*</div>)\0(^(^\s<!-))$SET(#=<span id="seiga">\0</span>)"
""
"|(> )\#($TST(layout2=1)($NEST(<td,\sclass="font10"\salign="right"><[^<]+(<nobr>*)\0<br></nobr> (<nobr>*)\1<br></nobr> "
"(<nobr>*)\2<br></nobr> (<nobr>*)\3<br></nobr> </div> ,</td>)(((^<!---->)?)++</tr> )\4(^(^</table> </div> <!----> ))"
"$SET(#=\4<tr><td colspan="2"><p class="font12">\0 </nobr>\n\1 </nobr>\n\2 </nobr>\n\3 </nobr>\n</p>)"
"|(<p class="font16" style=")\#margin:2px 0;">$SET(#=margin:2px 0; font-size:16px;">))"
"|($NEST(<p,\sclass="font10"\sstyle="margin-top:4px;"><nobr>*</strong>\ </nobr>*,</p>))\0"
"(((^<!---->)?)++)\1($TST(layout3=1)($NEST(<p,\sclass="vinfo_last_res*,</p>))\2"
"$SET(#=\1<tr><td colspan="2">\2<style type="text/css">.vinfo_last_res{margin:0px 0 0;}</style>\0)"
"|$TST(layout6=1)($NEST(<p,\sclass="font12">*,</p>))\2(^(^ </div>))$SET(#=\1\2\0)))"
Replace = "\@"
(9)用
[Patterns]
Name = "NicoVideo: search toka 1=>2 2=>3 4=>6 column [nine] (101108)"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)nine.nicovideo.jp/(search|tag|newarrival|recent|hotlist)"
Limit = 6400
Match = "(<div id="PAGEBODY"[^>]+>)\#"
"$SET(bg=background:#e7e7e7;)"
"$SET(waku=border:solid 1px #CFCFCF;)"
"$SET(border=0)"
"$SET(layout2=0)"
"$SET(layout3=1)"
"$SET(layout6=1)"
"$SET(rigtht_del=0)"
"$SET(seiga_del=0)"
"$SET(foot_del=1)"
"$SET(c2=478)$SET(c2b=476)"
"$SET(c3=319)$SET(c3b=317)"
"$SET(c6=158)$SET(c6b=156)"
"$SET(left_width=984)"
"$SET(#=<span style="width:$GET(left_width)px; float:left;">)"
"|(<div class=$AV(content_672))\0>"
"($TST($GET(rigtht_del)=0)$SET(1=\n.body_984{width:1296px; margin:0 auto 0 auto;})"
"|$TST($GET(rigtht_del)=1)$SET(1=\n.content_312{display:none;}))"
"($TST($GET(seiga_del)=1)$SET(2=\n#seiga{display:none;})|)"
"($TST($GET(foot_del)=1)$SET(3=\n#web_pc_footer_box, #PAGEFOOTER{display:none;})|)"
"$SET(#=</span>\0 >\n<style type="text/css"><!--\n.content_672{width:$GET(left_width)px;}\1\2\3\n--></style>)"
"|(div style="width:)\#[^>]++( overflow:hidden;"> <div style="clear:both;"> )\0$SET(#=$GET(left_width)px;\0)"
"(<div style="width:(640$SET(c236=2)|320$SET(c236=3)|160$SET(c236=6))$SET(column=0))\#"
"($TST($GET(border)=1)$SET(bg=$GET(bg) $GET(waku))$SET(c2=$GET(c2b))$SET(c3=$GET(c3b))$SET(c6=$GET(c6b))|)"
"|/img/common/thumb_cols/col$SET(#=http://local.ptron/col236)"
"|(/img/x.gif"\salt=")\#1(\w"[^\r\n]++alt=")\02(\w"[^\r\n]++alt=")\14$SET(#=2\03\16)"
"|</div>\s<div style="clear:both;"[^>]+>"
"|(div style="width:)\0($TST(column=0)(640$SET(1=$GET(c2))|320$SET(1=$GET(c3))|160$SET(1=$GET(c6)))$SET(column=)|"
"(640$SET(1=$GET(c2))$SET(column=$GET(column)1)($TST(column=1+{2})$SET(#=/div><div style="clear:both;">\n<)$SET(column=)|)"
"|320$SET(1=$GET(c3))$SET(column=$GET(column)1)($TST(column=1+{3})$SET(#=/div><div style="clear:both;">\n<)$SET(column=)|)"
"|160$SET(1=$GET(c6))$SET(column=$GET(column)1)($TST(column=1+{6})$SET(#=/div><div style="clear:both;">\n<)$SET(column=)|)"
"))([^>]+>)\2\s(^(^<!---->\s))$SET(#=\0\1\2)"
"|(iv[^>]++style="width:)\#"
"(($TST(c2)px;)\#($TST($GET(cs)=?+)|$SET(#= padding:2px 2px 2px 2px; margin:4px 4px 4px 4px;)|)"
"|($TST(c3)px;)\#($TST($GET(cs)=?+)|$SET(#= padding:2px 0px 2px 0px; margin:4px 4px 4px 4px;)|)"
"|($TST(c6)px;)\#($TST($GET(cs)=?+)|$SET(#= padding:2px 0px 2px 0px; margin:3px 3px 3px 3px;)|)"
")([^"]++)\0 margin:0 0 8px;($TST($GET(cs)=?+)$SET(#=\0)|$SET(#=\0 $GET(bg)))"
"|(width:$TST(c6b)px;[^<]+<[^<]+<div style="padding:)\#4$SET(#=3)(px;">)\#"
"|(<table[^>]++width=")\#(632|320)$SET(#=100%)"
"|(<div style=")\#width:(420px; |148px; (margin:2px 0;">)\#)"
"|(d style=")\#background:url\('http://nine.res.nimg.jp/img/common/thumb/split_line.png'\)[^"]+$SET(#=width:100%;)"
"|(p class="font14"[^>]+>)\#$NEST(<nobr>,\0,</nobr>)$SET(#=\0)"
"|(<a[^>]++href="watch/[^<]+<[^>]++)\#(class="img_std(96|128)"|(class="img_std96 lazyimage")\0)(^(^[^>]+></a></p>))"
"$TST($GET(c236)=(2|3|6))$SET(#=width="130"\0 style="border:solid 2px #333;")"
"|(class=$AV(vinfo_last_res*))\#>$SET(#= style="background:#eFeFeF;">)"
"|(<div style="margin:0 0 16px; clear:both;)\#">$SET(#= width:$GET(left_width)px; float:left;">)"
"|\s($NEST(<p, class="font12"\s*<span class="search_word">*,</p>)*</div>)\0(^(^\s<!-))$SET(#=<span id="seiga">\0</span>)"
""
"|(> )\#($TST(layout2=1)($NEST(<td,\sclass="font10"\salign="right"><[^<]+(<nobr>*)\0<br></nobr> (<nobr>*)\1<br></nobr> "
"(<nobr>*)\2<br></nobr> (<nobr>*)\3<br></nobr> </div>,</td>)(((^<!----> </div>)?)++</tr> )\4(^(^</table> <!----> </div>))"
"$SET(#=\4<tr><td colspan="2"><p class="font12" style="margin:4px 0px 0px 0px;">"
"\0 </nobr>\n\1 </nobr>\n\2 </nobr>\n\3 </nobr>\n</p>)"
"|(<p class="font14" style=")\#margin:2px 0;">$SET(#=margin:4px 0; font-size:16px;">))"
"|($NEST(<p,\sclass="font10"\sstyle="margin-top:4px;"><nobr>*</strong>\ </nobr>*,</p>))\0"
"(((^<!----> </div>)?)++)\1($TST(layout3=1)($NEST(<p,\sclass="vinfo_last_res*,</p>))\2"
"$SET(#=\1<tr><td colspan="2">\2<style type="text/css">.vinfo_last_res{margin:2px 0 0;}</style>\0)"
"|$TST(layout6=1)($NEST(<p,\sclass="font12">*,</p>))\2(^(^ </div>))$SET(#=\1\2\0)))"
Replace = "\@"
下のファイルを保存してhtmlフォルダに入れる
col236_0.png
col236_1.png
枠を付けたい場合は$SET(border=の0を1に、右側や静画部分を消したい場合は$SET(rigtht_del=、$SET(seiga_del=の0を1にしてください
再生数などのレイアウトは$SET(layout2=、$SET(layout3=、$SET(layout6=を0か1にすることで列数ごとに変えられます

(原宿)用
[Patterns]
Name = "Nico: Search-PlayingTimeChecker+View [hrjk] (101108)"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/(search|tag|recent|newarrival|hotlist)"
Limit = 9600
Match = "(div id="PAGEBODY"[^>]++>)\#\s"
"$SET(#=<style type="text/css"><!--\n"
".thumb_col_1{width:636px; padding:0 2px 2px 2px; margin:4px 4px 4px 4px;}\n"
".thumb_col_2{width:316px; padding:0 0px 2px 0px; margin:4px 4px 4px 4px;}\n"
".thumb_col_4{width:156px; padding:0 0px 2px 0px; margin:3px 3px 3px 3px;}\n"
"--></style>)"
"|(> <div class=$AV(content_672)>)\#$SET(border=0)"
"|(<div style="width:)\#[^>]++( overflow:hidden;"> <div style="clear:both;"> )\0"
"$SET(#=666px; padding:0 9px;\0)"
"|(div class="thumb_col_(1|2|4)")\0 >"
"(((^</div> <!---->)?)++<p class="vinfo_length"><span>)\2"
"(([#0:2])\3$SET(4=background:#efefef; border:#ECECEC)"
"|([#3:6])\3$SET(4=background:#e7e7e7; border:#E4E4E4)"
"|([#7:12])\3$SET(4=background:ghostwhite; border:lavender)"
"|([#13:22])\3$SET(4=background:#eFeFe5; border:#FDF6C9)"
"|([#23:*])\3$SET(4=background:#eFe9e9; border:mistyrose)"
")$SET(#=\0 style="\4">\2\3)"
"|(iv class="thumb_col_(1|2|4)"[^>]++)\0" >"
"(((^</div> <!---->)?)++<strong class="vinfo_view")\2>"
"(([0-9]+,[0-9]+,[0-9]+)\3$SET(r_04=navy)$SET(4=solid; border-width:4px 0 0; padding-top:0px; color:$GET(r_04))$SET(5=font-size:140%;)"
"|([#500:999],[0-9]+)\3$SET(r_04=#000064)$SET(4=solid; border-width:3px 0 0; padding-top:1px; color:$GET(r_04))$SET(5=font-size:140%;)"
"|([#100:499],[0-9]+)\3$SET(r_04=#000049)$SET(4=double; border-width:3px 0 0; padding-top:1px; color:$GET(r_04))$SET(5=font-size:120%;)"
"|([#10:99],[0-9]+)\3$SET(r_04=black)$SET(4=solid; border-width:2px 0 0; padding-top:2px; color:$GET(r_04))$SET(5=font-size:120%;)"
"|([1-9],[0-9]+)\3$SET(r_04=#404040)$SET(4=solid; border-width:1px 0 0; padding-top:3px; color:$GET(r_04))$SET(5=font-size:100%;)"
"|([0-9]+{3})\3$SET(r_04=#555555)$SET(4=dotted; border-width:0px 0 0; padding-top:4px; color:$GET(r_04))$SET(5=font-size:100%;)"
"|([#0:99])\3$SET(r_04=gray)$SET(4=dashed; border-width:0px 0 0; padding-top:4px; color:$GET(r_04))$SET(5=font-size:120%;)"
")$SET(#=\0 \4;">\2 style="\5">\3)"
"|$NEST(<div,( class="thumb_col_4")\0>\1,(</div>)\2)$SET(#=<div\0 ><div style="padding:4px;">\1\2\2)"
"|(<table[^>]++width=")\#(624|312)$SET(#=100%)"
"|<div style="width:412px; $SET(#=<div style=")"
"|(p class="font16"[^>]+>)\#$NEST(<nobr>,\#,</nobr>)"
"|(<a href="(openlist|mylistcomment/video)/([a-z][a-z]|)[0-9]+")\#$SET(#= style="color:$GET(r_04)\;")"
"|(<nobr>\w<a href="http://uad.nicovideo.jp/ads/[^>]++style=")\#[^"]+$SET(#=color:$GET(r_04)\;)"
"|(class=$AV(vinfo_last_res*))\#>$SET(#= style="background:#eFeFeF;">)"
"|(d style=")\#background:url\('http://res.nimg.jp/img/common/thumb/split_line.png'\)[^"]+$SET(#=width:100%;)"
Replace = "\@"
(9)用
[Patterns]
Name = "Nico: Search-PlayingTimeChecker+View [nine] (101108)"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)nine.nicovideo.jp/(search|tag|recent|newarrival|hotlist)"
Limit = 6400
Match = "(<div style="width: )\#640px;$SET(#=666px;)( padding:0 )\#16$SET(#=9)"
"$SET(border=0)(px; overflow:hidden;">((^<!)?)++<div style="width:"
"(640$SET(c1=636)$SET(cs=2px 2px 2px; margin:4px 4px 4px 4px;)"
"|320$SET(c2d=316)$SET(cs=0px 2px 0px; margin:4px 4px 4px 4px;)"
"|160$SET(c4=156)$SET(cs=0px 2px 0px; margin:3px 3px 3px 3px;)"
"))\#"
"|(<div[^>]++style="[^"]++width:(640|320|160)px;)\0( overflow:hidden; float:left;)\9\1""
"(((^<!----> </div>)?)++<p class="vinfo_length"><span>)\2"
"(([#0:2])\3$SET(4=background:#efefef; border:#ECECEC)"
"|([#3:6])\3$SET(4=background:#e7e7e7; border:#E4E4E4)"
"|([#7:12])\3$SET(4=background:ghostwhite; border:lavender)"
"|([#13:22])\3$SET(4=background:#eFeFe5; border:#FDF6C9)"
"|([#23:*])\3$SET(4=background:#eFe9e9; border:mistyrose)"
")$SET(#=\0\1\9 \4"\2\3)"
"|(div[^>]++style="[^"]++width:(640|320|160)px;[^>]++)\0( overflow:hidden; float:left;)\9\1""
"(((^<!----> </div>)?)++<strong class="vinfo_view")\2>"
"(([0-9]+,[0-9]+,[0-9]+)\3$SET(r_04=navy)$SET(4=solid; border-width:4px 0 0; padding:0px $GET(cs) color:$GET(r_04))$SET(5=font-size:140%;)"
"|([#500:999],[0-9]+)\3$SET(r_04=#000064)$SET(4=solid; border-width:3px 0 0; padding:1px $GET(cs) color:$GET(r_04))$SET(5=font-size:140%;)"
"|([#100:499],[0-9]+)\3$SET(r_04=#000049)$SET(4=double; border-width:3px 0 0; padding:1px $GET(cs) color:$GET(r_04))$SET(5=font-size:120%;)"
"|([#10:99],[0-9]+)\3$SET(r_04=black)$SET(4=solid; border-width:2px 0 0; padding:2px $GET(cs) color:$GET(r_04))$SET(5=font-size:120%;)"
"|([1-9],[0-9]+)\3$SET(r_04=#404040)$SET(4=solid; border-width:1px 0 0; padding:3px $GET(cs) color:$GET(r_04))$SET(5=font-size:100%;)"
"|([0-9]+{3})\3$SET(r_04=#555555)$SET(4=dotted; border-width:0px 0 0; padding:4px $GET(cs) color:$GET(r_04))$SET(5=font-size:100%;)"
"|([#0:99])\3$SET(r_04=gray)$SET(4=dashed; border-width:0px 0 0; padding:4px $GET(cs) color:$GET(r_04))$SET(5=font-size:120%;)"
")$SET(#=\0\9\1 \4;"\2 style="\5">\3)"
"|(v[^>]++style="[^"]++width:)\#(640$SET(#=$GET(c1))|320$SET(#=$GET(c2d))|160$SET(#=$GET(c4)))([^"]++)\0 margin:0 0 8px;$SET(#=\0)"
"|(<table[^>]++width=")\#(632|320)$SET(#=100%)"
"|(div style=")\#width:(420px; |148px; (margin:2px 0;">)\#)"
"|(p class="font14"[^>]+>)\#$NEST(<nobr>,\0,</nobr>)$SET(#=\0)"
"|(<a href="(openlist|mylistcomment/video)/([a-z][a-z]|)[0-9]+")\#$SET(#= style="color:$GET(r_04)\;")"
"|(<nobr>\w<a href="http://uad.nicovideo.jp/ads/[^>]++style=")\#[^"]+$SET(#=color:$GET(r_04)\;)"
"|(class=$AV(vinfo_last_res*))\#>$SET(#= style="background:#eFeFeF;">)"
"|(d style=")\#background:url\('http://nine.res.nimg.jp/img/common/thumb/split_line.png'\)[^"]+$SET(#=width:100%;)"
Replace = "\@"
※(9)用はNicoVideo: search toka 1=>2 2=>3 4=>6 column [nine]より優先順位を上にして使用してください

![]()
単独で使用すると左側の画像みたいな感じに、Nico:Headerと併用すると右側みたいな感じに
[Patterns]
Name = "NicoVideo: search form+ (101111)"
Active = TRUE
Multi = TRUE
URL = "(www|nine).nicovideo.jp/"
Limit = 9216
Match = "(<html[^>]+>)\#"
"$SET(sf_cb=2)"
"|(($NEST(<form,((^("ph_sf"|>))?)++action="(|/)(search|tag)"*$AV(bar_search)*,</form>)"
"|(/(.headerIcon|#web_pc_uneune) --> <h1><a href="http://www.nicovideo.jp/">\w</a></h1>)\#"
"$SET(0=<div style="float:left; margin:6px 0 0 7px;">)$SET(1=</div>))"
"$SET(#=\0\n$FILE(../html/search_form+.txt)\n\1)"
"|$NEST(<form, id="HeadSearchForm"*,</form>)"
"$SET(#=\n$FILE(../html/search_form+_hl.txt)\n))"
"|[%EF][%BB][%BF](<)\#"
"|(> <title>)\#(($URL(*/(search|(|related_)tag)/)\w[%E6][%A4][%9C][%E7][%B4][%A2]\s"
"|$URL(*/mylist/)\w[%e3][%82][%b9][%e3][%83][%88]\s"
"|$URL(*/watch/))(\0) [%e2][%80][%90]((^[%e2][%80][%90])?)++</title>"
"|$URL(*/openlist/)*<h1>[%E5][%8B][%95][%E7][%94][%BB] <a[^>]+>\0</a>[^\r\n]++</h1>"
")\1\s$SET(sf_at_in=\0)$SET(#=\1)"
"$URL(*/watch/$SET(rb_sc= \nondblclick="ph_sf.s.value=Video.id; ph_sf.s.focus(); return false;")|)"
"|(value=")\#<--sf_at_in-->$SET(#=$GET(sf_at_in))"
"|<--rb_sc-->$SET(#=$GET(rb_sc))"
"|(<input[^>]++)\0<--checked-->$SET(#=$GET(checked))"
"($TST(sf_cb=0)$SET(checked=\0)|$TST(sf_cb=1)$SET(checked=\0checked)"
"|$TST(sf_cb=2)$SET(checked=<span id="ph_cb"></span))"
"|(\sif\s\(Cookie.get\('ph_cb_checked'[^!]++checked>';})\0($TST(sf_cb=2)$SET(#=\0)|)"
"|(<script[^>]++src=")\#[^"]++/js(/my3.js)\0[^<]+(</script>)\1$SET(#=http://local.ptron\0">\1)"
Replace = "\@"
$SET(sf_ch=0) 読み込み時別窓チェックなし $SET(sf_ch=1) 読み込み時別窓チェック入り $SET(sf_ch=2) Cookieでチェックの状態を保存(標準) ページ読み込み時は自動入力されないようにしたい場合、"|[%EF][%BB][%BF](<)\#"の行の前に下の行を追加する $SET(#=<script type="text/javascript"><!--\ndocument.ph_sf.s.value='';\ndocument.ph_sf.s.focus();\n--></script>\n)
下のファイルを保存してオミトロンのhtmlフォルダに入れる(※解凍してできたフォルダは含まない)
search_form+.zip (101104)
search_form+.txt (101104) ※単独で使用する場合に必要
search_form+_hl.txt (101107) ※Nico:Headerと併用する場合に必要
&ref(): File not found: "my3.js" at page "フィルタ、リスト公開/nicovideo"; (101101) ※(9)固定の場合とNico:Headerと併用してる場合には不必要
入力フォームEnterでの動作を別窓チェックボックスと連動しないようにする場合、テキストの入力フォームの所のjump(this.action+~を変更する
location.href=(this.action+~ 常時同じ窓で開く
window.open(this.action+~ 常時別窓で開く
入力フォームの幅を変えたい場合、テキストの入力フォームの所のwidthの値をいじる

[Patterns]
Name = "NicoVideo: add search link Google,YouTube,Veoh (091107)"
Active = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/(search|tag|related_tag)/([^\?]+)\0$SET(query=\0)"
Limit = 256
Match = "(^(^var\sq=$AV(\0)$SET(keyword=\0)\s))"
"|(<div\sclass="mb8p4">\s$NEST(<p,\sclass="font12">*,</p>))\#"
"$SET(#=<p class="font12">"
"<a href="http://www.google.co.jp/search?q=$GET(query)"><img alt="" src="http://res.nimg.jp/img/common/icon/search.gif" class="txticon">"
"キーワード\n<strong style="background:#CCC;">$GET(keyword)</strong>\nをGoogleで検索</a>\n"
"<a href="http://www.youtube.com/results?search_query=$GET(query)"><img alt="" src="http://res.nimg.jp/img/common/icon/search.gif" class="txticon">"
"キーワード\n<strong style="background:#CCC;">$GET(keyword)</strong>\nをYouTubeで検索</a>\n"
"<a href="http://www.veoh.com/search/videos/q/$GET(query)"><img alt="" src="http://res.nimg.jp/img/common/icon/search.gif" class="txticon">"
"キーワード\n<strong style="background:#CCC;">$GET(keyword)</strong>\nをVeohで検索</a></p>)$STOP()"
Replace = "\@"

[Patterns]
Name = "NicoVideo: replace search button (091107)"
Active = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/"
Limit = 128
Match = "<input\s[^>]++submit_search.[^>]+>"
"$SET(#=<ul class="iconbar">\n"
"<li><input type="image" name="submit" src="http://www.nicovideo.jp/img/favicon.ico"></li>\n"
"<li><span onclick="key=$F('bar_search').strip();if(key!='')window.open('http://www.google.co.jp/search?q='+encodeURIComponent(key),'_self');"><img src="http://www.google.co.jp/favicon.ico" alt=""></span></li>\n"
"<li><span onclick="key=$F('bar_search').strip();if(key!='')window.open('http://www.youtube.com/results?search_query='+encodeURIComponent(key),'_self');"><img src="http://www.youtube.com/favicon.ico" alt=""></span></li>\n"
"<li><span onclick="key=$F('bar_search').strip();if(key!='')window.open('http://www.veoh.com/search/videos/q/'+encodeURIComponent(key),'_self');"><img src="http://www.veoh.com/favicon.ico" alt=""></span></li></ul>\n"
"<style type="text/css"><!--"
"ul.iconbar {width:72px;margin:0;padding:0;list-style:none;}"
"ul.iconbar li {height:16px;width:16px;border:1px solid #000;background-color:#efefef;float:left;cursor:pointer;}"
"--></style>)$STOP()"
Replace = "\@"


[Patterns]
Name = "Nico: related tag -> select box (100916)"
Active = TRUE
Multi = TRUE
URL = "www.nicovideo.jp/search/$TYPE(htm)"
Limit = 1024
Match = "(<!--[%E2][%86][%93][%E9][%96][%A2][%E9][%80][%A3][%E3][%82][%BF][%E3][%82][%B0][^>]+>\s)\#"
"<table[^>]+>(\s<tr>\s<td\snowrap>[^<]+</td>\s<td>\s)\1"
"$SET(#=<form name="select_tag_1" onsubmit="location.href = this.select_tag_2.options[this.select_tag_2.selectedIndex].value; return false;">"
"\n<table style="padding:3px 4px;" class="font12">\1<select id="select_tag_2">\n)"
"|<nobr><a href=$AV((/tag/*)\1)>$NEST(<strong>,\2</strong>)</a></nobr>\ \ "
"$SET(#=<option value="http://www.nicovideo.jp\1">\2</option>)"
"|<nobr><a href=$AV((/related_tag/*)\1)>[.]+\2</a></nobr></td>\s</tr>\s</table>$SET(#=<option value="http://www.nicovideo.jp\1">\2</option>\n</select></td>\n"
"<td><input type="submit" class="submit" style="margin:0 0 0 3px;" value="検索"></td>\n</tr>\n</table>\n</form>)"
"|(<div\sstyle=\"[^"]+)\#$SET(#= display:none;)(\"[^>]+>)\#(^(^<!--[%E2][%86][%93][%E9][%96][%A2][%E9][%80][%A3][%E3][%82][%BF][%E3][%82][%B0][^>]+>))$STOP()"
Replace = "\@"
[Patterns]
Name = "Nico: related tag -> tag search box (100916)"
Active = TRUE
Multi = TRUE
URL = "www.nicovideo.jp/search/$TYPE(htm)"
Limit = 1024
Match = "(<input\s[^>]++id=$AV(search_united)\svalue=$AV(\1))\#$SET(search_value=\1)"
"|(<!--[%E2][%86][%93][%E9][%96][%A2][%E9][%80][%A3][%E3][%82][%BF][%E3][%82][%B0][^>]+>\s)\#"
"(<table[^>]+>\s<tr>\s<td\snowrap>[^<]+</td>\s<td>\s|$NEST(<p,</p>))"
"$SET(#=<form name="tag_search_1" onsubmit="var tag_s1 = String.interpret(this.tag_search_2.value).strip().replace(/%20/g, '+');"
"if (tag_s1 != '') location.href = 'http://www.nicovideo.jp/tag/' + encodeURIComponent(tag_s1); return false;">\n"
"<table style="padding:3px 4px;" class="font12">\n<tr>\n"
"<td nowrap>タグ検索:</td>\n"
"<td><input id="tag_search_2" type="text" size="30" style="line-height:normal;" value="$GET(search_value)"></td>\n"
"<td><input type="submit" class="submit" style="margin:0 0 0 3px;" value="検索"></td>\n</tr>\n</table>\n</form>)"
"|$NEST(<nobr>,<a\shref=$AV(/(related_|)tag/*)>*,</a></nobr>)(\ \ \s|</td>\s</tr>\s</table>)"
"|(<div\sstyle=\"[^"]+)\#$SET(#= display:none;)(\"[^>]+>)\#(^(^<!--[%E2][%86][%93][%E9][%96][%A2][%E9][%80][%A3][%E3][%82][%BF][%E3][%82][%B0][^>]+>))$STOP()"
Replace = "\@"

[Patterns]
Name = "Nico: related tag -> select box + search (100916) test"
Active = TRUE
Multi = TRUE
URL = "www.nicovideo.jp/search/$TYPE(htm)"
Limit = 1024
Match = "(<input\s[^>]++id=$AV(search_united)\svalue=$AV(\1))\#$SET(search_value=\1)"
"|(<table[^>]++)\#style=$AV(*)$SET(#=style="")([^>]+>\s<tr>\s)\#(<td\snowrap>[^<]+</td>)\1\s<td>\s"
"$SET(#=<td><form name="select_tag_1" onsubmit="location.href = this.select_tag_2.options[this.select_tag_2.selectedIndex].value; return false;">"
"\n<table>\n<tr>\n\1\n<td><select id="select_tag_2">\n)"
"|<nobr><a href=$AV((/tag/*)\1)>$NEST(<strong>,\2</strong>)</a></nobr>\ \ "
"$SET(#=<option value="http://www.nicovideo.jp\1">\2</option>)"
"|(<nobr><a href=$AV((/related_tag/*)\1)>[.]+\2</a></nobr></td>\s</tr>\s</table>$SET(#=<option value="http://www.nicovideo.jp\1">\2</option>\n</select></td>\n"
"<td><input type="submit" class="submit" style="margin:0 0 0 3px;" value="検索"></td>\n</tr>\n</table>\n</form></td>\n)$SET(no_rtag=)|"
"(<!--[%E2][%86][%93][%E9][%96][%A2][%E9][%80][%A3][%E3][%82][%BF][%E3][%82][%B0][^>]+>\s)\#$NEST(<p,[^>]+>\3,</p>)"
"$SET(no_rtag=<table cellpadding="4" cellspacing="0" class="font12">\n<tr>\n<td style="color:#aaa;" nowrap>\3</td>\n))"
"$SET(#=$GET(no_rtag)<td><form name="tag_search_1" onsubmit="var tag_s1 = String.interpret(this.tag_search_2.value).strip().replace(/%20/g, '+');"
"if (tag_s1 != '') location.href = 'http://www.nicovideo.jp/tag/' + encodeURIComponent(tag_s1); return false;">\n"
"<table>\n<tr>\n<td nowrap>タグ検索:</td>\n"
"<td><input id="tag_search_2" type="text" size="28" style="line-height:normal;" value="$GET(search_value)"></td>\n"
"<td><input type="submit" class="submit" style="margin:0 0 0 3px;" value="検索"></td>\n</tr>\n</table>\n</form></td>\n</tr>\n</table>)"
"|(<div\sstyle=\"[^"]+)\#$SET(#= display:none;)(\"[^>]+>)\#(^(^<!--[%E2][%86][%93][%E9][%96][%A2][%E9][%80][%A3][%E3][%82][%BF][%E3][%82][%B0][^>]+>))$STOP()"
Replace = "\@"


[Patterns]
Name = "Nico: cross search simple (101029)"
Active = TRUE
Multi = TRUE
URL = "(www|seiga|live|nine).nicovideo.jp/(mylist_|)search"
Limit = 1024
Match = "background:(\s|)url(\s|)\(('|)(http://(nine.|)res.nimg.jp/|)img/search/form_frm_(top|btm).png('|)\)"
"|<div\sid=$AV(usearch_form_tab)>$SET(#=<div style="padding:4px 4px 0;">)"
"|<div\sid=$AV(usearch_form_input)>$SET(#=<div style="margin:0 4px 4px; padding:2px 10px 10px;">)"
"|<table\scellpadding=$AV(0)\scellspacing=$AV(0)>$SET(#=<table cellpadding="0" cellspacing="0" style="border-collapse: separate; margin:0 auto;">)"
"|<a\sclass=$AV(tab_([0-9])\0)\shref=$AV(\1)>$SET(#=<a style="height:12px; font-size:11px;" class="tab_\0" href="\1">)"
"|<a\shref=$AV(\1)\sclass=$AV(tab_([0-9])\0)>$SET(#=<a style="height:12px; font-size:11px;" class="tab_\0" href="\1">)"
"|<strong\sstyle=$AV(color:#C00;)>$SET(#=<strong style="font-size:12px;color:#C00;">)"
"|<strong\s>$SET(#=<strong style="font-size:12px;">)"
"|<strong\sclass=$AV(\0)>$SET(#=<strong class="\0" style="font-size:12px;">)"
"|\sborder:solid\s1px #999F9F;|margin:\s0pt auto;\sborder:\s1px\ssolid\srgb\(153,\s159,\s159\);$SET(#=margin: 0pt auto;)"
"|(class=$AV(search_input)\sstyle=$AV(width:400px;\sheight:20px;)|style=$AV(width:\s400px;\sheight:\s20px;)\sclass=$AV(search_input))"
"$SET(#=style="width:360px; height:16px; font-size:16px; border:solid 1px #393F3F; margin:0; padding:2px;")"
"|(http://(nine.|)res.nimg.jp|)(/|)img/search/form_submit.png"
"$SET(#=http://local.ptron/submit.png)$STOP()"
Replace = "\@"
submit.pngをhtmlフォルダに入れてください。



・
Nico_Header1107.zip(110709) を保存、解凍してオミトロンのhtmlフォルダの下にNico_Header1107フォルダを置いておく。
・サブメニューをマウスオーバーで開きたい場合はheader.txtのclass名がon_clickとなっている所をon_mouseoverにしてください。
・フォントによってはheader.cssを編集してサブメニューや検索バーの幅を調整する必要があるかもしれません。
サブメニューの幅→.NavGlb~となっている所あたり、検索バー→#HeadSearchBar~となっている所。
[Patterns]
Name = "Nico: Header (110709)"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/"
Limit = 8192
Match = "var\sq=$AV(\0)$SET(keyword=\0)\s"
"|(^(^</head>))(^$TST(header=1))$SET(header=1)$SET(#="
"<link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="http://Local.ptron/Nico_Header1107/header.css">\n"
"<script type="text/javascript" charset="utf-8" src="http://Local.ptron/Nico_Header1107/header.js"></script>\n)"
"|(<body\s[^>]++class=\"[^"]++)\#mode_[12]"
"|$NEST(<div,\sid=$AV(navWrap|PAGEHEADMENU)"
"(*<a\s(href="https://secure.nicovideo.jp/secure/login_form")\0"
"$SET(login=<a \0 style="color: #F30;">ログイン</a>)|"
"$SET(login=<span>マイページ▼</span>)"
")*,</div>)$SET(#=<div id="PAGEHEADMENU">\n<!--$FILE(../html/Nico_Header1107/header.txt)-->\n</div>)"
"|$NEST(<ul,\sclass="SubNav NavMy"$TST(login=<a*)*,</ul>)"
"|$NEST(<div,\sid=$AV(header|PAGEHEADER)*,</div>)$STOP()"
"|\$GET\((keyword$SET(#=$GET(keyword))|login$SET(#=$GET(login)))\)"
Replace = "\@"


[Patterns]
Name = "NicoVideo: header light (hrjk) [1/2] 110707"
Active = TRUE
Multi = TRUE
URL = "www.nicovideo.jp/$TYPE(htm)"
Limit = 16000
Match = "(</head>)\#$SET(#=\n<style type="text/css"><!-- @import url('http://local.ptron/header_light.css'); --></style>)"
"|(<(body|div class="bg_headmenu"$SET(1= onmouseout="hideOBJ('headmenu_g2'); return false;")))\#"
"( onmouseout=$AV(*) |)([^>]++)\0>$SET(#=\0 style="background:url('http://local.ptron/bg_hl.gif') repeat-x;"\1>)"
"|($NEST(<table,[^>]++( class="headmenu")\9*,</table>) <table[^>]++class="headmenu"[^<]+<tr[^<]+<td[^>]+>"
"$SET(0=<table height="24" width="1000" cellpadding="0" cellspacing="0"\9 "
"style="margin:0px 0px 0px -8px;"><tr>\n<td width="100%">)$SET(1=<td nowrap>)"
"|(<div id="navWrap"[^<]+<div[^>]++id="navigations")\9>*(<ul id="mainNav">?++)\8(^(^</div> <!-- /#navigations -->))"
"$SET(0=\9 style="width:1000px;">)$SET(1=<div style="float:right;">\8</div>))"
"$SET(#=\0\n<!--sf_hl-->\n"
"<div style="float:left; margin:3px 4px 0px 3px;">\n"
"<select class="hl19" style="width:59px; font-size:10px;" onChange="if (this.value.strip()!='') "
"jump(this.value); this.value='';">\n"
"<option value="" selected>Link\n\2"
"$FILE(../html/Link_List.txt)\n\3</select>\n</div>\n\n\1)"
"|(<td nowrap[^>]+>|<li>$SET(2=margin:0 4px; ) )\#([%E4][%B8][%80][%E8][%88][%AC]"
"|[%E3][%83][%97][%E3][%83][%AC][%E3][%83][%9F][%E3][%82][%A2][%E3][%83][%A0])"
"[%E4][%BC][%9A][%E5][%93][%A1][ ](<strong[^>]+>\0</strong>|\0)([ ][%E3][%81][%95][%E3][%82][%93])\1(</span>|[ ]|)"
"$SET(#=<a style="\2color:#FFF; font-weight:normal; text-decoration:none;" href="https://secure.nicovideo.jp/secure/">\0</a>)"
"|(<td>| - )<a href="/\?p=premium_top\&(|amp;)sec=bar"[^<]++</a>(</td>|)"
"|((<td nowrap>)\#[^<]+</td> <td>|(<li>)\#|<span[^<]++</span> - )(<a href="https://secure.nicovideo.jp/secure/login_form"[^<]+</a>)\#$SET(#= )"
"|(<td nowrap onmouseover="showOBJ\(\'headmenu_g2\'\);")\#>$SET(#= style="padding:0 0 0 4px;">)"
"|(<td id="menu_switch")\#>$SET(#= style="padding:0 2px 0 4px;">)"
"|$NEST(<form, id="head_search_form"*,</form>)\s$NEST(<script,</script>)|$NEST(<div,[^>]++"(mini|)Search(Form|)Wrap"*,</div>)"
""
"|(<html[^>]+>)\#"
"$SET(sf_cb=2)"
"|<!--sf_hl-->"
"$SET(#=\n$FILE(../html/search_form+_hl.txt)\n)"
"|[%EF][%BB][%BF](<)\#"
"|(> <title>)\#(($URL(*/(search|(|related_)tag)/)\w[%E6][%A4][%9C][%E7][%B4][%A2]\s"
"|$URL(*/mylist/)\w[%e3][%82][%b9][%e3][%83][%88]\s"
"|$URL(*/watch/))(\0)[ ][%e2][%80][%90]((^[%e2][%80][%90])?)++</title>"
"|$URL(*/openlist/)*<h1>[%E5][%8B][%95][%E7][%94][%BB] <a[^>]+>\0</a>[^\r\n]++</h1>"
"|$URL(*/mylist_search/)*id="search_united" value="\0""
")\1\s$SET(sf_at_in=\0)$SET(#=\1)"
"|(value=")\#<--sf_at_in-->$SET(#=$GET(sf_at_in))"
"$URL(*/watch/$SET(rb_sc= \nondblclick="ph_sf.s.value=Video.id; ph_sf.s.focus(); return false;")|)"
"|<--rb_sc-->$SET(#=$GET(rb_sc))"
"|(<input[^>]++)\0<--checked-->$SET(#=$GET(checked))"
"($TST(sf_cb=0)$SET(checked=\0)|$TST(sf_cb=1)$SET(checked=\0checked)"
"|$TST(sf_cb=2)$SET(checked=<span id="ph_cb"></span))"
"|(\sif\s\(Cookie.get\('ph_cb_checked'[^!]++checked>';})\0($TST(sf_cb=2)$SET(#=\0)|)"
""
"|<li> <a href="[^"]++/my/top">*href="[^"]++/header/uniranking">\w</a>"
"$SET(#=<li>\n$FILE(../html/top_bar_link_hl.txt)\n"
"<script type="text/javascript"><!--\nif (Cookie.get('ranking')) {document.getElementById('menu-ranking').href='/ranking'+Cookie.get('ranking')} "
"else {document.getElementById('menu-ranking').href='/ranking'}\n--></script>\n)"
"|<td(> \| )\0$SET(9=<td nowrap style="padding:0 0px 0 4px;"\0)"
"<a href="(my/top|[^"]++/header/mypage)">*href=$AV(\1)\sid="menu-ranking">\w</a>$SET(rank_url=\1)"
"$SET(#=\9$FILE(../html/top_bar_link_hl.txt))"
"|(<a[^>]++href=)\#"<--rank_url-->"$SET(#="$GET(rank_url)")"
"|(<td><a href=")\#[^"]+(^(^"[^<]+<img[^>]++/hrjk.png$SET(#=http://www.nicovideo.jp/)"))"
Replace = "\@"
Name = "NicoVideo: header light (hrjk) [2/2] 110612"
Active = TRUE
Multi = TRUE
URL = "www.nicovideo.jp/$TYPE(htm)"
Limit = 16000
Match = "<a[^>]++(id="menu-ranking")\1[^>]++href=$AV(\0)>\2</a>((^(^*<script[^\(]+\(Cookie.get\('ranking'\)))"
"$SET(9=</li>\n<li>)"
"$SET(8=top:-2px; right:55px;)"
"|$SET(9=<td nowrap style="padding-left:4px;">)"
"$SET(8=top:-8px; right:5px;)"
"$SET(7=\9)"
")$SET(rank__url=\0)$SET(rank_link=\2)$SET(#=\9\n"
"<a href="javascript:void(0)" onmouseover="headrankmenu();" onmouseout="hideOBJ('headrankmenu');">\2▼</a>\n"
"<div id="headrankmenu" style="position:relative; display:none; float:right;">\n"
"<div style="position:absolute; padding:0px; background:url('http://local.ptron/bg_b_a80.png'); border:#FFF 2px solid; \8" "
"onmouseover="showOBJ('headrankmenu'); headrankmenu_hide_flg1=headrankmenu_hide_flg2=true;" "
"onmouseout="if (headrankmenu_hide_flg1 && headrankmenu_hide_flg2) { hideOBJ('headrankmenu'); }">\n"
"<table cellpadding="0" cellspacing="0" style="font-size:12px; line-height:1.25;">\n"
"<tr><td nowrap>\n$FILE(../html/header_rank_link+.txt)\n"
"</td></tr></table>\n</div>\n</div>\n\7)"
"|href="<--rank_url-->"$SET(#=href="$GET(rank__url)")"
"|"[ ]><--rank_link--></a>$SET(#=">$GET(rank_link)</a>)"
"|(onmouseover=$AV(*(showOBJ\('*'\);)\0*))\#$SET(#= onmousemove="\0")"
"|(<a id="r_cate_0" name=")\#(" style=")\0display:none; $URL(*/ranking/[^/]+/[^/]+/(\1(\?|/)|\1))$SET(#=/\1\0)"
""
"|[%E2][%80][%A6]</li>*((<a[^>]++href="[^"]++/logout"[^<]+</a> )\0*|)</li><!-- /.hasSubNav -->"
"$SET(#=| <span style="color:#CCC; text-decoration:underline; padding:0px 0px 4px 0px;" "
"onmouseover="showOBJ('headmenu_g2');" onmouseout="hideOBJ('headmenu_g2');">Menu▼</span>"
"\n<div id="headmenu_g2" style="position:relative; display:none;" onmouseover="showOBJ('headmenu_g2');">"
"\n<div class="headmenu_g" onmouseout="hideOBJ('headmenu_g2');" style=""
"top:-6px; right:0px; font-size:10px; line-height:0.6;">\n"
"$FILE(../html/top_bar_user_menu_hl.txt)\n\0</div></div>)"
"|[%E2][%80][%A6]</td>$SET(#=|)( <td[^<]+<span style="color:#(CCC|C9CFCF); text-decoration:underline;">)\#"
"[%E3][%83][%A1][%E3][%83][%8B][%E3][%83][%A5][%E3][%83][%BC](^(^[%E2][%96][%BC]</span>))$SET(#=Menu)"
"|$NEST(<div,( class="headmenu_g" onmouseout="hideOBJ\(\'headmenu_g2\'\);[^>]++)\0style=$AV(*)([^>]+>)\1*"
"<a href="(http://help.nicovideo.jp/|[^"]++/header/help)">\w</a>\2,</div>)$SET(#=<div\0style=""
"top:0px; right:0px; font-size:10px; line-height:0.6;""
"\1\n$FILE(../html/top_bar_user_menu_hl.txt)\2</div>)"
""
"|(> )\#((<td id="menu_switch"?++<div[^>]++id="PAGEHEADER"[^>]+>)\0\1\s(^(^<div id="PAGEBODY">))"
"$SET(2=<td style="padding-left:4px;">|\n<td nowrap><div style="margin:-0px 0px 0 4px;">)$SET(3=</div></td>)"
"|(<li><a id="fixPin"*<div id="header"[^>]+>)\0(*</div>)\1(^(^<!-- /#header -->))"
"$SET(2=<li>|</li>\n<li style="margin:2px 1px 0px 2px; line-height:1;">)$SET(3=</li>))"
"$SET(hb_sw=2)"
"$SET(sOBJ1=hideOBJ('HeaderB'); hideOBJ('hbs1'); showOBJ('hbs2');)"
"$SET(sOBJ2=showOBJ('HeaderB'); showOBJ('hbs1'); hideOBJ('hbs2');)"
"$SET(hbs=\n<a style="color:#EEE; font-size:10px; text-decoration:none;" href="javascript:void(0)" onclick=")"
"$SET(Cook=, 1000*60*60*24*365, '.nicovideo.jp', '/'\); return false;")"
"($TST(hb_sw=0)$SET(h_1=display:block;)$SET(h_2=display:none;)"
"|$TST(hb_sw=1)$SET(h_1=display:none;)$SET(h_2=display:block;)"
"|$TST(hb_sw=2)$SET(hb_sw_2=\n<script type="text/javascript"><!--\n"
"if (Cookie.get('hbs')=='0') {\n$GET(sOBJ1)}\n"
"else {\n$GET(sOBJ2)}\n--></script>\n))"
"$SET(#=\2\n"
"<span style="$GET(h_1)" id="hbs1">$GET(hbs)$GET(sOBJ1)\nCookie.set\('hbs', '0'$GET(Cook)>△<br>▼</a></span>\n"
"<span style="$GET(h_2)" id="hbs2">$GET(hbs)$GET(sOBJ2)\nCookie.set\('hbs', '1'$GET(Cook)>▲<br>▽</a></span>\n"
"\3\n\0\n<div id="HeaderB">$GET(hb_sw_2)\1</div><!---->)"
Replace = "\@"
## IE使用時のチェックボックスの位置ずれ修正、[1/2]の最後に下の行を追加する |$NEST(<style,*#PAGETOP\s.hlcb*,</style>\s)
下のファイルを保存してオミトロンのhtmlフォルダに入れる
header_light_hrjk.zip (110707) ※解凍後のフォルダは含まない
search_form+_hrjk.zip (110612) ※解凍後の”search_form+”フォルダごと使用
Link_List.txt (110612)
top_bar_link_hl.txt (110612)
top_bar_user_menu_hl.txt (110612)
header_rank_link+.txt (110707)

[Patterns]
Name = "NicoVideo: top bar link+ (101103)"
Active = TRUE
Multi = TRUE
URL = "(www|nine).nicovideo.jp/$TYPE(htm)"
Limit = 2000
Match = "<li> <a href="[^"]++/header/mypage">*href="[^"]++/header/uniranking">\w</a>"
"$SET(#=<li>\n$FILE(../html/top_bar_link+_hrjk.txt)\n"
"<script type="text/javascript"><!--\nif (Cookie.get('ranking')) {$('menu-ranking').href='/ranking'+Cookie.get('ranking')} "
"else {$('menu-ranking').href='/ranking'}\n--></script>\n<li>)"
"|<a href="(my/top|[^"]++/header/mypage)">*href=$AV(\1)\sid="menu-ranking">\w</a>$SET(rank_url=\1)"
"$SET(#=$FILE(../html/top_bar_link+.txt))"
"|(<a[^>]++href=)\#"<--rank_url-->"$SET(#="$GET(rank_url)")"
"|(<td><a href=")\#[^"]+(^(^"[^<]+<img[^>]++/(nine.png$SET(#=?g=)|hrjk.png$SET(#=http://www.nicovideo.jp/))"))"
"|[%EF][%BB][%BF](<)\#"
"|[%E2][%80][%A6](</li>*<span>)\0*(</span> <ul class="subNav nav4Main")\1>*"
"((<li><a[^>]++href="[^"]++/logout"[^<]+</a></li> |)</ul><!-- /.subNav -->)\2"
"$SET(#=|\0Menu▼\1 style="width:92px;">"
"\n$FILE(../html/top_bar_user_menu_hrjk.txt)\n\2)"
"|[%E2][%80][%A6]</td>$SET(#=|)( <td[^<]+<span style="color:#(CCC|C9CFCF); text-decoration:underline;">)\#"
"[%E3][%83][%A1][%E3][%83][%8B][%E3][%83][%A5][%E3][%83][%BC](^(^[%E2][%96][%BC]</span>))$SET(#=Menu)"
"|$NEST(<div,( class="headmenu_g" onmouseout="hideOBJ\(\'headmenu_g2\'\);[^>]++)\0style=$AV(*)([^>]+>)\1*"
"<a href="(http://help.nicovideo.jp/|[^"]++/header/help)">\w</a>\2,</div>)$SET(#=<div\0style=""
"top:0px; right:0px; font-size:10px; line-height:0.65;""
"\1\n$FILE(../html/top_bar_user_menu.txt)\2</div>)"
Replace = "\@"
## ニコニコ動画(原宿)画像クリック時のリンク先をページによって変わらないようにニコニコトップに固定、
## (9)画像クリック時のリンク先をカテゴリごとのページには飛ばない"http://www.nicovideo.jp/?g="にする
|(<td><a href=")\#[^"]+(^(^"[^<]+<img[^>]++/(nine.png$SET(#=?g=)|hrjk.png$SET(#=http://www.nicovideo.jp/))"))
下のファイルを保存してhtmlフォルダに入れる
top_bar_link+.txt (101101)
top_bar_user_menu.txt (101101)
top_bar_link+_hrjk.txt (101103) ※(9)固定の場合は不必要
top_bar_user_menu_hrjk.txt (101103) ※(9)固定の場合は不必要


[Patterns]
Name = "NicoVideo: header rank link+ (101103)"
Active = TRUE
Multi = TRUE
URL = "(www|nine).nicovideo.jp/$TYPE(htm)"
Limit = 2000
Match = "<a([^>]++href=$AV(\0)[^>]++(id="menu-ranking")\1|[^>]++(id="menu-ranking")\1[^>]++href=$AV(\0))>\2</a>((\|)\3|)"
"((^(^*<script[^\(]+\(Cookie.get\('ranking'\)))"
"$SET(9=</li>\n<li>)"
"$SET(8=top:-2px; right:8px;)"
"|$SET(9=<td nowrap>)"
"$SET(8=top:-8px; right:5px;)"
"$SET(7=\9)"
")$SET(rank__url=\0)$SET(rank_link=\2)$SET(#=\9\n"
"<a href="javascript:void(0)" onmouseover="headrankmenu();" onmouseout="hideOBJ('headrankmenu');">\2▼</a>\3\n"
"<div id="headrankmenu" style="position:relative; display:none; float:right;">\n"
"<div style="position:absolute; padding:0px; background:url('http://local.ptron/bg_b_a80.png'); border:#FFF 2px solid; \8" "
"onmouseover="showOBJ('headrankmenu'); headrankmenu_hide_flg1=headrankmenu_hide_flg2=true;" "
"onmouseout="if (headrankmenu_hide_flg1 && headrankmenu_hide_flg2) { hideOBJ('headrankmenu'); }">\n"
"<table cellpadding="0" cellspacing="0" style="font-size:12px; line-height:1.25;">\n"
"<tr><td nowrap>\n$FILE(../html/header_rank_link+.txt)\n"
"</td></tr></table>\n</div>\n</div>\n\7)"
"|[%EF][%BB][%BF](<)\#|href="<--rank_url-->"$SET(#=href="$GET(rank__url)")"
"|"[ ]><--rank_link--></a>$SET(#=">$GET(rank_link)</a>)"
"|(onmouseover=$AV(*(showOBJ\('*'\);)\0*))\#$SET(#= onmousemove="\0")"
"|(<a id="r_cate_0" name=")\#(" style=")\0display:none; $URL(*/ranking/[^/]+/[^/]+/(\1(\?|/)|\1))$SET(#=/\1\0)"
Replace = "\@"
拡張メニューの表示位置の調整は”top:~px; right:~px;”の数値を弄って調整してください
左クリックでメニューを開くようにしたい場合は "<a href="javascript:void(0)" onmouseover="showOBJ('headrankmenu');"を
"<a href="javascript:void(0)" onclick="showOBJ('headrankmenu');"に変更してください
下のファイルを保存してhtmlフォルダに入れる
header_rank_link+.txt (101101)
bg_b_a80.png (100302)

[Patterns]
Name = "NicoVideo: HeaderBottom switch (101103)"
Active = TRUE
Multi = TRUE
URL = "(www|nine).nicovideo.jp/$TYPE(htm)"
Limit = 6400
Match = "(> )\#((<td id="menu_switch"?++<div[^>]++id="PAGEHEADER"[^>]+>)\0\1\s(^(^<div id="PAGEBODY">))"
"$SET(2=<td style="padding-left:0px; color:#666;">|\n<td nowrap><div style="margin:-0px 0px 0 0px;">)$SET(3=</div></td>)"
"|(<li><a id="fixPin"*<div id="header"[^>]+>)\0(*</div>)\1(^(^<!-- /#header -->))"
"$SET(2=<li style="color:#666;">|</li>\n<li style="line-height:1; margin:2px 0px 0 3px;">)$SET(3=</li>))"
"$SET(hb_sw=2)"
"$SET(sOBJ1=hideOBJ('HeaderB'); hideOBJ('hbs1'); showOBJ('hbs2');)"
"$SET(sOBJ2=showOBJ('HeaderB'); showOBJ('hbs1'); hideOBJ('hbs2');)"
"$SET(hbs=\n<a style="color:#EEE; font-size:10px; text-decoration:none; margin-right:0px;" href="javascript:void(0)" onclick=")"
"$SET(Cook=, 1000*60*60*24*365, '.nicovideo.jp', '/'\); return false;")"
"($TST(hb_sw=0)$SET(h_1=display:block;)$SET(h_2=display:none;)"
"|$TST(hb_sw=1)$SET(h_1=display:none;)$SET(h_2=display:block;)"
"|$TST(hb_sw=2)$SET(hb_sw_2=\n<script type="text/javascript"><!--\n"
"if (Cookie.get('hbs')=='0') {\n$GET(sOBJ1)}\n"
"else {\n$GET(sOBJ2)}\n--></script>\n))"
"$SET(#=\2\n"
"<span style="$GET(h_1)" id="hbs1">$GET(hbs)$GET(sOBJ1)\nCookie.set\('hbs', '0'$GET(Cook)>△<br>▼</a></span>\n"
"<span style="$GET(h_2)" id="hbs2">$GET(hbs)$GET(sOBJ2)\nCookie.set\('hbs', '1'$GET(Cook)>▲<br>▽</a></span>\n"
"\3\n\0\n<div id="HeaderB">$GET(hb_sw_2)\1</div><!---->)"
Replace = "\@"
$SET(hb_sw=0) ページ読み込み時表示 $SET(hb_sw=1) ページ読み込み時非表示 $SET(hb_sw=2) 表示状態をCookieで保存(標準)

[Patterns] Name = "NicoVideo: del footer (100901)" Active = TRUE Multi = TRUE URL = "www.nicovideo.jp/$TYPE(htm)" Limit = 4096 Match = "$NEST(<div,\sid=$AV(PAGEFOOTER)*,</div>)" Replace = "<div id="PAGEFOOTER"></div>"

[Patterns]
Name = "Nico: Nanika_del+ (110327)"
Active = TRUE
Multi = TRUE
URL = "(www|nine).nicovideo.jp/$TYPE(htm)"
Limit = 8192
Match = "onclick=$AV((switchCategoryTag|updateColumnMode)*)"
"|(<td[^<]+<a[^>]++href=")\#(^(^\?g="[^<]+<img[^>]++class="g_top"))$SET(#=video_top/)"
"|<div\sid="web_pc_premium"\sclass="sideBanner"></div>"
"|($NEST(<div,\sclass=$AV(sideTxtAd)*,</div>)|<table[^<]+<[^>]++$AV(web_pc_prtext)((^-->)?)+--></script>)"
"|<div\sid="web_pc_footer"[^<]+</div>$SET(#=<style type="text/css"><!--\n#contentsWrap{padding-bottom:0px;}\n--></style>)"
"|<div\sclass="toPageTop">*</div>(^(^<!-- /#footerWrap -->))"
"|$NEST(<td,>[^>]++id=$AV(web_pc_uneune)*,</td>)"
"|$NEST(<div,\s(class=$AV(ads_468)>|id=$AV(web_pc_top))*,</div>)"
"|$NEST(<div,[^<]++<[^>]++id=$AV(web_pc_pr(emium|ime))*,</div>)(\s$NEST(<script,</script>)|)"
"|($NEST(<script,*$AV(web_pc_360)*,</script>)|$NEST(<div,\sid="web_pc_360"*,</div>))"
"|$NEST(<div,[^>]++id=$AV(web_pc_footer_box)*,</div>)\s$NEST(<script,</script>)"
"|$NEST(<a$URL(*/watch/),\shref=$AV(#{link})*dic_off.png">,</a>)"
"|$NEST((<td)\#$URL(*/watch/),(\swidth="100%"[^>]+>)\#*$AV(*/howto/\?watch_howto)*,</td>)"
"|$NEST(<td$URL(*/watch/),[^>]++id=$AV(outside)*,</td>)"
"|$NEST(<div$URL(*/watch/),\sclass=$AV(tag_sync)>*<a[^>]++href=*,</div>)"
"|$NEST(<div$URL(*/watch/),\sclass=$AV(mb16p4)>*googlesyndication*,</div>)"
"|$NEST(<div$URL(*/mylist/),\sclass=$AV(mb8p4)>*>\<iframe\>[%E3][%82][%BF]*,</div>)"
"|(<div[^>]++id=$AV(PAGEFOOTER)[^>]+>)\#\s$SET(#=<div style="display:none;">)"
"|(<div id="announcement">*</div>)"
"|(<div id="PAGEURGENT">*</div>)"
Replace = "\@"
## 動画トップのタブや列数選択時のフィルタ無効化防止 ## (原宿)動画トップでフィルタ無効化防止使用時の不具合修正 ## (原宿)ニコニコTOPの右部広告(大) ## (原宿)ニコニコTOP、動画トップの右部広告(テキスト) ## (原宿)ニコニコTOPの下部広告 ## (原宿)ニコニコTOP、マイページ、総合ランキングのフッタ ## ヘッダ左の広告(極小) ## ヘッダ右の広告 ## 右部広告(大) ## 右部広告(小) ## 下部広告 ## 動画ページのタグの横の大百科記事なし時の画像 ## 動画ページのプレイヤーの使い方周辺 ## 動画ページのプレイヤー右下のアイコンメニュー ## 動画ページの市場上の広告など ## 動画ページのフッタ上の広告 ## マイリストのブログパーツ ## フッタ ## 募金募集
※使わない行の削除などでマッチの一番上の行が変わった場合、その行の先頭の"|"を必ず消してください

フィルタの編集で各自必要な物を追加したり入れ替えてください
※個別に更新されるのですべてが正常動作するとは限りません
## タイトルやや右上の「・・・”カテゴリ名” カテゴリ前日総合順位」
|[%E2][%80][%A6]$URL(*/watch/)(</span>)\#[^\r\n]++$NEST(<a,\shref=$AV(ranking_graph/fav/*)*,</a>)[^<]+
## タイトル横のアイコン・リンクを、一括ですべて削除 (2011年 7月18日修正)
|(><a$URL(*/watch/)[^>]++id=$AV(video_article)[^>]+>)\#((^</p>)?)+$SET(#=</a>)
## (※1)動画説明文の全てのタブを消して、枠の幅を小さめに(投稿動画は "コメントの編集" タブがあるため除外) (2010年 10月16日修正)
|(<table$URL(*/watch/)[^>]++id=$AV(itab))\#(^*href=$AV(#itab_edit)>)$SET(#= style="display:none;")(*class=$AV(info_frm))\#$SET(#= style="border-width:1px !important; margin-top:4px;")
## 投稿者の情報と「ウォッチリストに登録」ボタン
|(class=$AV(owner_prof)$URL(*/watch/))\#$SET(#= style="display:none;")
## 「登録タグ」アイコン (2011年 10月7日修正)
|(<base$URL(*/watch/)[^>]+>)\#$SET(#=\n<style type="text/css"> #video_controls { background:none !important; padding-left:0 !important; } </style>)
## ニコニコ市場 (2011年 11月26日修正)
|$NEST(<script,[^>]++$AV(*/js/ichiba.js*)*,</script>) $NEST(<div,[^>]++$AV(ichiba_placeholder)*,</div>)|$NEST(<table$URL(*/watch/),*$AV(*/icon_ichiba.gif)*,</table>)
## プレイヤー下の「使い方」~「共有▼」ボタン(一列全て) (2011年 10月5日修正)
|$NEST(<div,$URL(*/watch/)[^>]++id=$AV(player_bottom_(share|textlink))*,</div>)
## プレイヤー左下の「使い方・よくある質問・コメントを報告・動画を報告」まで (2011年 10月5日修正)
|$NEST(<div,$URL(*/watch/)[^>]++id=$AV(player_bottom_textlink)*,</div>)
## プレイヤー右下の「マイメモリー保存・Facebook(いいね!アイコン)・Tweet・共有▼」まで (2011年 10月5日修正)
|$NEST(<div,$URL(*/watch/)[^>]++id=$AV(player_bottom_share)*,</div>)
## ニコニコ市場とプレイヤーの間に表示される広告 (2011年 12月3日修正)
|$NEST(<p,[^>]++class=$AV(watch_tag_sync)*,</p>)|$NEST(<div,[^>]++class=$AV(tag_sync_wrap)*,</div>)
## 「動画説明文の要約」・・・続きを読む (2011年 10月7日修正)
|(id=$AV(video_title)$URL(*/watch/)*<div\sclass=$AV(des_1)[^<]+)\#$NEST(<p,</p>)
## タグ横の大百科アイコン (2011年 10月22日)
|$NEST(<a,[^>]++$AV(*dic.nicovideo.jp/*)[^<]+<img[^>]++src=$AV(*/img/common/icon/dic_o*)*,</a>)
## 「【ご注意】ニコニコムービーメーカー以外で作成されたswf動画・・・」の文章 (2011年 12月11日更新)
|$NEST(<p,[^<]+<a[^>]++href=$AV(*.ssw.co.jp/nmm*)*,</p>)
## 連続再生時 ”現在視聴中の動画を…” の文章 |$NEST(<p$URL(*/playlist/mylist/),</p>)\s(^(^<div\s[^>]+><div\sid=$AV(MSG_deflist))) ## 連続再生時 上部の投稿者のマイリスト紹介文 |($NEST(<h1,><a href=$AV(mylist/*)*,</h1>))\#\s$URL(*/playlist/mylist/)$NEST(<div,</div>) ## 連続再生時 プレイヤー下部の「プレイヤーの使い方~」 |(=$AV(WATCHFOOTER)$URL(*/playlist/mylist/)>*)\#$NEST(<p,[^>]+> <a\shref=$AV(*/howto/playlist.html\?watch_playlist)*,</p>)
| この動画は・・・ | |(class=$AV(des_2)$URL(*/watch/)[^>]+>)\#[^<]+$NEST(<p,\sclass=$AV(font12)*,</p>)(^(^*<div\sclass=$AV(info_frm))) |
| タイトル横の「投コメ」アイコン | |$NEST(<a,[^>]+><img\ssrc=$AV(*/watch/tit_icon/toukome.png)*,</a>) |
| タイトル横の「大百科」のアイコン | |(<a[^>]++id=$AV(video_article)[^<]+)\#<img$URL(*/watch/)[^>]+> |
| タイトル横の「@CM」のアイコン | |$NEST(<a,[^>]+><img\ssrc=$AV(*/watch/tit_icon/nicos_cm.png)*,</a>) |
| タイトル横の「@BGM」のアイコン | |$NEST(<a,[^>]+><img\ssrc=$AV(*/watch/tit_icon/nicos_bgm.png)*,</a>) |
| タイトル横の「認可」アイコン | |<img src=$AV(*/watch/tit_icon/ninca.png)[^>]+> |
| タイトル横の「ニコニ・コモンズ」アイコン | |$NEST(<a,$URL(*/watch/)\sid=$AV(nicommons)*,</a>) |
| 「マイリストコメント」を表示するタブ | |$NEST(<a,$URL(*/watch/)\shref=$AV(#itab_mylist)*,</a>) |
| 「世界の新着動画」の記事を表示するタブ | |$NEST(<a,$URL(*/watch/)\shref=$AV(#itab_worldvideo)*,</a>) |
| タグ横の「カテゴリ」画像 | |<img src=$AV(*/img/watch/ctg.png)[^>]+> |
| プレイヤーに表示される動画説明文 | |(so.addVariable\(\"thumbDescription\"[^"]+\")\#[^"]+(\")\#$URL(*/watch/) |
| プレイヤーに表示される「世界の新着動画」「生放送」等へのリンク | |(so.addVariable\(\"hoihoi(Title|URL|Button)\"[^"]+\")\#[^"]+(\")\#$URL(*/watch/) |
| 動画ページだけヘッダ固定を標準にする | |(<body$URL(*/watch/) id="PAGETOP" class=")\#mode_1$SET(#=mode_2) |
| ニコニ広告で宣伝ボタン | |(<td>|)<a[^>]+><img[^>]++src=$AV(*/watch/my_btn/uad_?.png)[^>]+></a>(</td>|) |
| マイリスト登録ボタン | |(<td>|)<a[^>]+><img[^>]++src=$AV(*/watch/my_btn/mylist_?.png)[^>]+></a>(</td>|) |
| とりあえずマイリスト登録ボタン | |(<td>|)<a[^>]++id=$AV(BTN_add_deflist)[^>]+><img[^>]+></a>(</td>|) |
| 「動画アワード2011(~)」~この動画を推薦 | |$NEST(<table,$URL(*/watch/)[^<]+<tr> <td[^<]+<a[^>]++href=$AV(*/cc/watch/award2011*)*,</table>) |
## (※1)ヘッダバーのユーザー名の前の”一般会員”(プレミアム会員の場合どうなるかはわかりません) (2011年 12月13日修正)
|(<a href="my/top">|<li>)\#[%E4][%B8][%80][%E8][%88][%AC][%E4][%BC][%9A][%E5][%93][%A1]\s
## ヘッダバーを除いた下部全部
|$NEST(<table,(\swidth="984"[^>]++cellpadding=")\04("[^>]++clear:both;">)\1*,</table>)$SET(#=<table\00\1</table>)
## ランキングのRSSボタン
|$NEST(<td><a$URL(*/ranking/),*src=$AV(http://res.nimg.jp/img/common/rss/default.gif)*,</a></td>)
## 「ニコニコ動画(原宿)」アイコン (2011年 1月2日更新)
|$NEST(<td,><a[^<]+<img[^>]++src=$AV(*/head/logo/hrjk.png)*,</td>)
## (※1)左上のGIFアニメ (2011年 11月22日更新)
|($AV(headerIcon))\#$SET(#= style="display:none")|$NEST(<td,>*<script[^>]++src=$AV(*(/js/head_icon)*)*,</td>)
## (※1)ヘッダのプレミアム会員登録 (2010年 12月10日更新)
|(<td>| - )<a href="/\?p=premium_top\&[^<]++</a>(</td>|)
## キーワード検索時、下部に表示される「過去の公式生放送」の情報 (2011年 11月22日更新)
|($NEST(<div,[^\r\n]++class=$AV(dotline_2)*,</div>) $NEST(<p,</p>)|) $NEST(<table$URL(*/search/),[^>]++width=$AV(672)*class=$AV(live_bg_official)*,</table>)
## タグ検索時、下部に表示される静画(スライドショー)の情報 (2011年 11月22日更新)
|($NEST(<div$URL(*/tag/),[^\r\n]++class=$AV(dotline_2)*,</div>) $NEST(<p,</p>)|) $NEST(<div,[^>]++id=$AV(item[0-9]+)*href=$AV(*seiga.nicovideo.jp/watch/[a-z0-9]+)*,</div>)
## ヘッダー左上の「ニコニコTOP」から「その他▼」までのリンク (2011年 11月26日更新)
|$NEST(<table,[^>]++class=$AV(headmenu)\sstyle=$AV(float:left;)*,</table>)
## タグ検索時の「このタグをお気に入りに登録」ボタンと、登録した「お気に入りタグ」のエリア (2011年 12月14日更新)
|$NEST(<div,[^>]++id=$AV(fav_tag_head|fav_tagbox)*,</div>)
## ヘッダ右上の「オススメ」リンク (2011年 12月14日更新)
|(\| )<a href=$AV(*nicovideo.jp/recommendations)>[^<]+</a>\s
| ヘッダの検索フォーム | |$NEST(<form, id=$AV(head_search_form)*,</form>)\s$NEST(<script,</script>) |
| F5制限解除 | |Event.observe\(document,\s$AV(keydown)[^}]+}((^\);)?)+\); |
| マイリストの「動画を宣伝」ボタン | |$NEST(<div,\sclass=$AV(SYS_box_item_buttons)*,</div>) |
| 最新コメント吹き出し消去(Fukidashi killerを入れた場合不要) | |$NEST(<p,\sclass=$AV(vinfo_last_res(2|))[^>]+>*,</p>) |
| 【読込中】ニコニ広告を読み込んでいます…(タグ検索時のニコニ広告) | |$NEST(<div,\sid=$AV(nicoads)>*,</div>) |
| ランキングページの「動画を宣伝|ランキング推移」 | |onmouseover=$AV(showOBJ\($AV(MENU_*)\);) |
| 検索結果の動画の宣伝数 | |$NEST(<nobr,*vinfo_uadp*,</nobr>) |
| 動画説明文 | |$NEST(<p,\sclass=$AV(vinfo_description)*,</p>) |
| ランキングの動画説明文 | |(class=$AV(watch)[^>]+>[^<]+</a></p> )\#$NEST(<p,\sclass=$AV(font12)*,</p>) |
| キーワード検索時の関連タグの一覧 | |$NEST(<table,[^>]+> <tr> <td nowrap>[^<]+</td> <td> <nobr> <a href=$AV(/tag/*)>*,</table>) |
| 公開マイリストの投稿者の動画説明文 | |$NEST(<div$URL(*/mylist/),\sclass=$AV(SYS_box_memo_normal)*,</div>) |
| 公開マイリストの上部の紹介文 | |(MylistGroup.preloadSingle$URL(*/mylist/)\(?++description:\s\")\#[^"]+(\")\# |
| 公開マイリストの連続再生ボタン | |<td>[^\r\n]++$AV(http://res.nimg.jp/img/mylist/btn_playlist.png)[^\r\n]++</td> |
| 右列 | |(<div class="content_312")\#$SET(#= style="display:none;") |
| 右列(ランキングページは除外) | |(<div class="content_312")\#$SET(#= style="display:none;")(^$URL(*/ranking/)) |
| ランキングの右列(カレンダー以外) | |(</div> )\#(^(^<div class=$AV(mb8p4)> <p id=$AV(web_pc_prime)></p>))$SET(#=</div><div style="display:none;">\r\n)$URL(*/ranking/) |
| フッタの"ページトップ"画像 | |$NEST(<p,[^>]+><a\shref=$AV(JavaScript:ANCHOR\(\'PAGETOP\'\))>*,</p>) |
## マイページ上部の「~さんのマイページ」から「ニコニコポイント購入」を含む一列 |(id=$AV(headingMypage))\#$SET(#= style="display:none;") ## ヘッダー左上の「ニコニコTOP」から「その他▼」までのリンク (2011年 11月26日更新) |$NEST(<ul,[^>]++id=$AV(globalNav)*,</ul>) ## 視聴履歴の、左側と上側欄を消して、視聴履歴の欄を全体に拡大 |(<div$URL(*/my/history)[^>]++id=$AV(mypageNavs|headingMypage))\#$SET(#= style="display:none;") |(id$URL(*/my/history)=$AV(mypageContents))\#$SET(#= style="float:left; width:100%;") ## 投稿動画の最新コメント吹き出し欄(他の方のマイリストの投稿動画にも対応) (2011年12月3日修正) |$NEST(<p,[^>]++class=$AV(videoComment)*,</p>) ## 投稿動画のページの上部の(「動画を投稿する」の下の)キャンペーンやADを除去 (2011年10月16日更新) |$NEST(<dl$URL(*/my/video(^?)),[^>]++class=$AV(campaign)*,</dl>) ## マイページの「ニコニコ動画(原宿)」アイコン (2011年 1月2日更新) |<h1[^<]+<a\shref=$AV(http://www.nicovideo.jp/)>[^<]+</a></h1>( $NEST(<a[^>]++href=$AV(*rd.nicovideo.jp/cc/nico_top/*)*,</a>)|) ## 右上の広告 |($AV(headerBanner))\#$SET(#= style="display:none;") ##(※1)ヘッダの「総合ランキング」をクリックすると、ニコニコ動画ランキングトップへ (2011年10月16日更新) |(<li><a[^>]++href="http://www.nicovideo.jp/)\#uni_ranking$SET(#=ranking) ## 右下の「ページトップ」アイコン |$NEST(<div,\sclass=$AV(toPageTop)>[^<]+<a[^>]++$AV(toPageTopBtn)*,</div>) ## フッタを削除 |(id=$AV(footerWrap))\#$SET(#= style="display:none;")
※1 $SET(#=ranking)を $SET(#=ranking/fav/daily/all)などに変更すると「カテゴリ合算・期間:デイリー・対象:総合」などのランキングにリンクを変更できます。
## 右列削除 (2011年10月07日修正) |(id=$AV(content_360))\#$SET(#= style="display:none;")
[Patterns] Name = "Nanika del ranking_new" Active = TRUE Multi = TRUE URL = "www.nicovideo.jp/ranking((^?)|\?page=)$TYPE(htm)" Limit = 8192 Match = "$NEST(<p,[^>]++class=$AV(comment)*,</p>)" Replace = "\@" #最新コメント吹き出し削除(デフォルトで入っています)
## 動画説明文 |$NEST(<p,[^>]++class=$AV(description)*,</p>) ## 動画を宣伝|ランキング推移 |$NEST(<p,[^>]++class=$AV(hidden_menu)*,</p>) ## 順位のとなりのポイント(スコア) |$NEST(<span,[^>]++class=$AV(score)*,</span>) ## RSSボタン |$NEST(<a,[^<]+<img src=$AV(*/common/rss/default.gif)*,</a>) ## 右列すべて |(id=$AV(ranking_sub))\#$SET(#= style="display:none;") ## 右列のカテゴリ別ランキングから上を残して、以下すべて削除 |(</div>)\#(^(^ <div\sclass="cat_wrap))$SET(#=<div style="display:none;">\n)|(<a href=$AV(*/ichiba.nicovideo.jp/ranking)[^<]+</a></p> </div>)\#$SET(#=</div>) ↓右側を個別に削除する場合↓ ## ランキングの設定を保存するボタン+RSSボタン |$NEST(<div,[^>]++class=$AV(ranking_btn)*,</div>) ## カテゴリ別ランキングのリンク表 |$NEST(<h2>,</h2>) $NEST(<div,\sclass="ranking_cat_menu *,</div>)$SET(#=<div class="ranking_cat_menu clearfix" style="background:none; margin:8px 0;"></div>) ## カテゴリ別ランキングの1~3位までの動画リスト |$NEST(<div,\sclass="cat_wrap *,</div>) ## ニコニ広告ランキング出張所 |$NEST(<h3>,</h3>) $NEST(<div,\sid=$AV(userAd_rank)*,</div>) ## ニコニコ静画ランキング出張所 |$NEST(<h3>,</h3>) $NEST(<div,\sid=$AV(seiga_rank)*,</div>) ## ニコニコ市場ランキング出張所 |$NEST(<h3>,</h3>) $NEST(<div,\sid=$AV(ichiba_rank)*,</div>)

| 上部広告、トップページ左側広告 | $NEST(<div,\sid=$AV(ad_*)*,</div>) |
| 上部広告 | $NEST(<div,\sid=$AV(headerAd)*,</div>)\s$NEST(<script,*getAds*,</script>) |
| 上部番組表 | $NEST(<div,\sid=$AV(timetable)*,</div>)$URL(http://live.nicovideo.jp/(\s|recent(^jk))) |
| カテゴリ下部「今すぐ放送~」 | $NEST(<div,\s[^>]++id=$AV(liveInfo_recent)*,</div>)$URL(http://live.nicovideo.jp/recent) |
| 下部ページトップへのリンク | (<div\s[^>]++id=$AV(toTop))\#[^>]+>$SET(#= style="height:0;margin:0;"></div><div style="display:none;">) |
| 下部フッター | (<div\s[^>]++id=$AV(footer))\#[^>]+>$SET(#= style="border:none;padding:0;"></div><div style="display:none;">) |
| ↓動画ページ | |
| 上部広告 | $NEST(<div,\sclass=$AV(ads_468)*,</div>) |
| 説明文now on airアイコン | <img\ssrc=$AV(img/nicolive/now_on_air.gif*)[^>]+>$URL(http://live.nicovideo.jp/watch/*) |
| 下部「使い方~」 | (<div\s[^>]++id=$AV(alertbar))\#[^>]+>$SET(#=></div><div style="display:none;">) |
| 下部「前の番組へ~」 | $NEST(<div,\s[^>]++id=$AV(nextprev)*,</div>) |
| 下部「クルーズで~」 | $NEST(<span,\sid=$AV(zapping_cruise)*,</span>) |
| 下部「アラート~&携帯~」 | $NEST(<div,\sstyle=$AV(margin:0px auto; padding:15px 0px; overflow:hidden;)>*,</div>) |

[HTTP headers] In = TRUE Out = TRUE Key = "URL: NicoVideo player ad killer (both)" URL = "ad.nicovideo.jp/server/get\?(video|*\&video)" Replace = "\k"

[Patterns] Name = "NicoVideo: kill SMILEVIDEO,PREMIUM,NMM,comment.gif" Active = TRUE URL = "www.nicovideo.jp/$TYPE(htm)" Bounds = "<img*>" Limit = 256 Match = "<img*alt=$AV((SMILEVIDEO|[%e6][%8a][%95][%e7][%a8][%bf][%e8][%80][%85]*|[%e3][%83][%97][%e3][%83][%ac][%e3][%83][%9f][%e3][%82][%a2][%e3][%83][%a0]*|NicoMovieMaker))*>"

[Patterns] Name = "Nico: MylistComment to Openlist" Active = TRUE Multi = TRUE URL = "www.nicovideo.jp/$TYPE(htm)" Limit = 8192 Match = "<a[^>]++href=\"mylistcomment/video/\0\"><strong" Replace = "<a href=\"openlist/\0\"><strong"

[Patterns]
Name = "NicoVideo: ichiba toggle button (091104)"
Active = TRUE
URL = "$TYPE(htm)(www|live).nicovideo.jp/(watch|gate)"
Limit = 512
Match = "(<div[^>]++id="ichiba_placeholder")\#$SET(#= style="display:none;")"
"|(href="http://ichiba.nicovideo.jp/" target="_blank"(^(^> <img[^>]++src=$AV(img/watch/ichiba/logo.gif*)))$SET(#=href="javascript:void(0);")"
"|(<img[^>]++class="ichiba_frm_top")\#$SET(#= style="cursor:pointer;"))"
"$SET(#= onClick="$('ichiba_placeholder').toggle()")"
Replace = "\@"
「NICONICO ICHIBA」のボタンで開閉
[Patterns]
Name = "Nicovideo Watch : Ichiba toggle button 3 [111124] beta2"
Active = TRUE
Multi = TRUE
URL = "www.nicovideo.jp/watch/$TYPE(htm)"
Limit = 1024
Match = "(div[^>]++id=$AV(player_bottom_textlink)?++</nobr>)\#(^(^</div>))"
"$SET(#=<nobr><a href="javascript:void(0)" onclick="$('ichiba_toggle').toggle();">ニコニコ市場</a></nobr>)"
"|(</script>)\# (^(^[^<]+<script[^>]++src=$AV(*/js/ichiba.js\?*)))$SET(#=\n\n<div id="ichiba_toggle" style="display:none;">\n\n)(?++<!---->)\#$SET(#=\n\n</div> <!-- ichiba_toggle -->\n\n)$STOP()"
Replace = "\@"
プレイヤー左下のボタン類の右の「ニコニコ市場」のボタンで開閉(デフォルトは非表示)
チャンネル系動画に対応しました(一部の「ニコニコ市場の存在していないチャンネル系動画」は、押しても反応は有りません)
現時点では、生放送には対応しておりません。改良点多々有り。


[Patterns]
Name = "NicoVideo: ichiba toggle Link (101015)"
Active = TRUE
URL = "www.nicovideo.jp/watch/$TYPE(htm)"
Limit = 512
Match = "([%E3][%82][%B0][%E2][%86][%93]-->)\#$SET(#=\r"
"<script type="text/javascript"><!--\r"
"var boo=false;"
"function ichiba() {"
"if(boo) return(0);"
"$('flvplayer_container').toggle();"
"$('ichiba_placeholder').toggle();"
"$('footer_help').toggle();"
"}"
"function ichiba_click() {"
"if(!boo){"
"$('ichiba_link').innerHTML='【市場ロック中】';"
"boo=true;"
"}"
"else{"
"$('ichiba_link').innerHTML='【市場】';"
"boo=false;"
"}"
"}\r--></script>\r"
"<div style="float:left;margin:4px;"><a id="ichiba_link" style ="font-size:12px;color:#C00;" href="javascript:void(0);" "
"onmouseover="ichiba()" onmouseout="ichiba()" onClick="ichiba_click()">【市場】</a></div>)"
""
"|<div style="background*margin-top:4px; padding-left:52px;">$SET(#=<div>)"
"|(<div id="ichiba_placeholder" style=")\#$SET(#=display:none;)"
"|(<td width="100%" class="font12" style="color:#CCC;")\#$SET(#= id="footer_help")"
Replace = "\@"
マウスを市場リンクに乗せるとプレーヤーと市場の表示を入れ替えます
クリックすると表示が固定されるので編集ができます
動画再生中だと再生がおかしくなりますがシークバーを前後に戻すと解消されます
環境によりタグの高さとズレが出ると思うので <div style="float:left;margin:4px;"> の部分で調整してください

[Patterns] Name = "Nico Kill ICHIBA" Active = TRUE URL = "www.nicovideo.jp/watch/?$TYPE(htm)" Limit = 6000 Match = "$NEST(<div, id=$AV(WATCHFOOTER)*,</div>)" Replace = "<span id="WATCHFOOTER"></span>"
全画面表示が出来なくなるのを修正

#携帯用の市場を消す
[Patterns]
Name = "NicoVideo: del keitai_ichiba+alpha [081016]"
Active = TRUE
URL = "ichiba([0-9]|).nicovideo.jp/embed$TYPE(htm)"
Limit = 4096
Match = "<div\s+id=\\"ichiba_itemA\\"*(<div\s+class=\\"premium_invitation\\"*<\\/div>*|)<\\/div>[^<]++"
"<div\s+id=\\"ichiba_edit_buttonA\\"*(<div\s+class=\\"ichiba_button\\"*<\\/div>*|)<\\/div>[^<]++"
"|<div\s+id=\\"ichiba_edit_buttonB\\"*<\\/div>[^<]++"
"|<img[^>]++(amazon.co.jp|Yahoo! JAPAN|warning-adult|comingsoon|noitem|noimage)[^>]++>"
Matchの3行目がPC向け編集ボタンを、4行目がAmazon/Yahooの商品であることを示す画像他を消しているので
不要ならこれらの行を削除してください
#ニコニコ市場とは … っていう説明を消す [Patterns] Name = "NicoVideo: Del ichiba setumei table [080518]" Active = TRUE URL = "www.nicovideo.jp/watch/$TYPE(htm)" Limit = 4096 Match = "$NEST(<table[^>]++summary=$AV([%e8][%aa][%ac][%e6][%98][%8e]),</table>)\s+"

FireFoxで動作確認。タグにidがついていればそこの表示切替ができるようになる。切替後の状態はクッキーで保持される。
ヘッダーの右端にセレクトボックスができるのでそこから表示を切り替える。(ヘッダーをいじっている場合はどうなるか分からない)
上の画像は左からトップページ、カテゴリページ、動画ページのものでそれぞれセレクトボックス内のものが切替可能になる。
もし他に切り替えたい場所があればフィルタ①みたいにしてidとtextをつけていけばいい。
使い方
下の2つのフィルタをいれておく。
①タグにidをつけるフィルタ (リスト使用)
ソースで<!--↓コミュニティ↓-->~<!--↑コミュニティ↑-->みたいになってるところにidをつけたり、動画ページ内のタグにidをつけたりする。
add_id.txt 左のファイルをListsフォルダに入れブロックファイルに追加しておく必要がある。
[Patterns]
Name = "Nico:Add ID (090214)"
Active = TRUE
URL = "www.nicovideo.jp/((^?)|\?g=|watch/)"
Limit = 8192
Match = "<!--[%E2][%86][%93]$LST(add_id)[^>]+>\2<!--[%E2][%86][%91]$LST(add_id)[^>]+>$SET(#=<span id="\0" text="\1">\2</span>)"
"|(<table width="160"[^>]++style="margin-bottom:8px;")\#$SET(#= id="top14" text="おすすめチャンネル")"
"|(<div style="width:560px; float:left; overflow:hidden;")\#$SET(#= id="top15" text="新着コメント動画")"
"|($NEST(<p style="padding:4px;">,<a href="#" onclick="showOBJ\(\'des_1\'\)*,</p>))\0$SET(#=<span id="button" text="ボタン">\0</span>)"
"|($NEST(<p>, <img src="http://res.nicovideo.jp/img/common/cms/\w*,</p>))\0$SET(#=<span id="logo" text="ロゴ">\0</span>)"
"|($NEST(<p class="TXT12" style="margin-top:2px;"><strong>,</p>))\0$SET(#=<span id="posted" text="投稿日時">\0</span>)"
"|($NEST(<h1>,<a*,</h1>))\0$SET(#=<span id="title" text="タイトル">\0</span>)"
"|($NEST(<p class="TXT12">,[^<]+<strong>*,</p>))\0$SET(#=<span id="rank" text="ランク">\0</span>)"
"|($NEST(<div, class="video_description"*,</div>))\0$SET(#=<span id="description" text="投稿者コメント">\0</span>)"
"|($NEST(<p, class="TXT12" style="color:#CCC; margin:4px;"*,</p>))\0$SET(#=<span id="link" text="この動画を…する">\0</>)"
"|(<td width="100%" style="padding:4px;")\#$SET(#= id="tag" text="登録タグ&大百科")"
"|($NEST(<table, width="960"[^>]+> <tr> <td> <a*,</table>))\0$SET(#=<span id="help" text="ヘルプ">\0</span>)"
Replace = "\@"
②上のフィルタ等でつけておいたidをMatch5行目idsに$("id名")のかたちでいれておく。(上のフィルタでつけたidは入れてある)
[Patterns]
Name = "Nico:Add Toggle Switch (090214)"
Active = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/((^?)|\?g=|watch/)"
Limit = 64
Match = "(var country = \w)\#$SET(#=\n"
"var ids=new Array;"
"Nico.onReady(function(){"
"wrap("PAGEFOOTER","footer","ページフッター");"
"ids=[$("top1"),$("top2"),$("top3"),$("top4"),$("top5"),$("top6"),$("top7"),$("top8"),$("top9"),$("top10"),$("top11"),$("top12"),$("top13"),$("top14"),$("top15"),$("top16"),$("top17"),$("top18"),$("top19"),"
"$("logo"),$("posted"),$("title"),$("rank"),$("description"),$("link"),$("button"),$("community"),$("tag"),$("mylist"),$("help"),$("ichiba"),$("info"),$("footer")];"
"var select=document.createElement("select");"
"if($("WATCHHEADER"))"
"select.innerHTML='<option onclick="download();">動画をダウンロード</option>';"
"for(var i=0;i<ids.length;i++){"
"if(ids[i]){"
"if(Cookie.get("display_"+ids[i].id)=="0") ids[i].style.display="none";"
"var text=ids[i].getAttribute("text"); if(!text) text=ids[i].id;"
"select.innerHTML+='<option onclick="toggle_(ids['+i+']);">'+text+'</option>'; }"
"}"
"if(select.childNodes.length){"
"var td=document.createElement("td");"
"td.appendChild(select);"
"$("PAGEHEADER").getElementsByTagName("tr")[0].appendChild(td);"
"}"
"document.body.style.display="";"
"});"
"function wrap(id1,id2,text){"
"var e=$(id1); if(e){"
"var div=document.createElement("div"); div.id=id2; div.setAttribute("text",text);"
"var c=e.childNodes; while(c.length) div.appendChild(c[0]);"
"e.appendChild(div); }"
"}"
"function toggle_(e){"
"if(e){ e.toggle(); Cookie.set("display_"+e.id,(e.visible())?"1":"0",1000*60*60*24*365,".nicovideo.jp","/"); }"
"}"
"function download(){"
"new Ajax.Request("/api/getflv/"+Video.id,{ method:"get","
"onSuccess:function(req){ var url=req.responseText.toQueryParams()['url']; window.open(url); } });"
"})"
"|(<body)\#$SET(#= style="display:none;")"
Replace = "\@"

[Patterns]
Name = "NicoVideo Ichiba Comment killer [111227]"
Active = TRUE
Multi = TRUE
URL = "ichiba.nicovideo.jp/embed/\?action="
Limit = 256
Match = "(setMaqueeHandler\([^}]++$AV(mouseover)[^}]++marquee\.enable[^}]++ 168\, 168\, )\#[0-9]+(^(^\)))$SET(#=0)"
"|(setMaqueeHandler\([^}]++$AV(mouseover)[^}]++marquee\.enable[^}]++ 80\, 80\, )\#[0-9]+(^(^\)))$SET(#=0)"
Replace = "\@"



表示されるサムネイルを大きくします。
[Patterns]
Name = "Nico : <style> LargeThumbnail MyPage [10/10/30]"
Active = TRUE
URL = "$TYPE(htm)[^/]++.nicovideo.jp/my(^list)"
Limit = 8
Match = "(^(^</head>))$STOP()"
Replace = "<style type="text/css">"
"#myContBody ul.myContList li .report {"
"width : 476px !important;"
"}"
"#myContBody ul.myContList li {"
"min-height : 115px !important;"
"}"
".mypageThumb,"
"#myContBody ul.myContList li .repThumb {"
"width: auto !important;"
"}"
".mypageThumb img { "
"width:130px !important;"
"height:100px !important;"
"border-width: 2px;"
"}"
"#myContBody ul.myContList li .mylistVideo {"
"margin-left : 150px !important;"
"}"
"#myContBody ul.myContList li.SYS_box_item .mylistVideo {"
"margin-left : 170px !important;"
"}"
"</style>"
Name = "Nico : <style> LargeThumbnail [10/10/30]"
Active = TRUE
URL = "$TYPE(htm)[^/]++.nicovideo.jp/(^my(^list))"
Limit = 8
Match = "(^(^</head>))$STOP()"
"("
"$URL(http://uad.nicovideo.jp/main/rank)"
"$SET(0=,p.thmb > a > img )"
"|"
"$URL(http://uad.nicovideo.jp/ads/)"
"$SET(0=,#video_thumb)"
"|"
"$URL(http://ichiba)"
"$SET(0=,dt.thumbnail > a > img)"
"|"
"$URL(http://www.nicovideo.jp/ranking(^?))"
"$SET(#=table.top20 table > tbody > tr[valign="top"] > td > div > p.font12 + div { width:134px !important;})"
"|"
"$URL(http://www.nicovideo.jp/ranking/)"
"$SET(#=p.mini_uad_g1, p.mini_uad_g2 { width:134px !important;}"
"div.thumb_uad_header + div tr td:first-child + td + td > div { width:450px !important;})"
"|"
"$URL(http://www.nicovideo.jp/user/[0-9]+/video)"
"$SET(#=table#video_table tr > td:first-child + td > div { width:522px !important;})"
"|"
"$URL(http://www.nicovideo.jp/)"
"$SET(#=table[width="632"] > tbody > tr[valign="top"] > td:first-child + td > div { width:384px !important;}"
"div.thumb_col_1 div[style*="412px"] { width:362px !important; })"
"|"
"$URL(http://ext.nicovideo.jp/thumb/)"
"$SET(#=body { word-break:break-all; })"
"|"
"$URL(http://ext.seiga.nicovideo.jp/)"
"$SET(#=img.seiga_img { width:96px; })"
"|"
"$URL(http://com.nicovideo.jp/video/)"
"$SET(#=table[width="713"] p.videoStats + div { width:570px !important;})"
"|"
"$URL(http://ch.nicovideo.jp/)"
"$SET(#=div.g-video-left { width:auto !important;})"
"|"
")"
Replace = "<style type="text/css">"
"img.img_std48"
",img.img_std64"
",img.img_std96"
",img.img_std128"
",img.video_w96"
",img.video_img"
",img.mylist_img"
",img.video_img_S"
",img.video_img_M"
",img.sample_img"
",img.uad_img_g1"
",img.uad_img_g2"
",p.mini_uad_g1 img"
",p.mini_uad_g2 img"
",img.channel_list_img"
",img.g-thumbnail-image"
"\0 { "
"width:130px !important;"
"height:100px !important;"
"border-width: 2px;"
"}"
"div.mb8p4 p.font10,"
"div.mb8p4 p.font12,"
"p.vinfo_description,"
"p.vinfo_last_res,"
"p.vinfo_last_res2,"
"div.seiga_thumb_frm,"
"div.thumb_frm { word-break:break-all; }"
"\@"
"</style>"

Deleteicons.zipをダウンロードして解凍した中から好みのアイコンをひとつ選び、delete.gifにリネームしてからオミトロンのhtmlフォルダにコピーした後、以下のフィルタを導入してください。
サムネ拡大時に合うように作っています。
サムネ拡大を使っていない場合やキャッシュアイコンと重なる場合は
style="position:absolute; bottom:-104px; left:0px
style="position:absolute; top:89px; left:0px;"
の数字を変えて調節してください。
[Patterns]
Name = "Nico : Thumbnail Restoration with LargeThumb [10/11/02]"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)[^/]++.nicovideo.jp/"
Limit = 2048
Match = "(<a [^>]++href=$AV((http://www.nicovideo.jp/|)watch/(??[0-9]+)\9*)[^>]+>)\4"
" <img\s(^(^[^>]++(class=$AV(*))\6|))"
"[^>]++(src|title)=$AV(*(delete|del_img|video_deleted).jpg|)[^>]+>"
"$SET(Nico_deleted=1)"
"("
"($TST(\9=[a-z][a-z]\0)"
"|$URL(http://com.nicovideo.jp/video/)(^(^(?(^</tr>))++href=$AV(http://www.nicovideo.jp/mylistcomment/video/[a-z][a-z]\0)))"
")"
"$SET(#=<span style="position:absolute;"><span style="position:absolute; bottom:-104px; left:0px; z-index:5;">"
"<img src="http://local.ptron/delete.gif" alt="削除された動画" style="border:0px; width:59px; height:15px;" />"
"</span></span>"
"\4<img src="http://tn-skr1.smilevideo.jp/smile?i=\0" \6 />)"
"|\s\s)"
"|"
"(<a\s[^>]+> <img\s[^>]++)\0"
"title=$AV({if $item.item_data.deleted % 8}[^{]+\{else}{$item.item_data.thumbnail_url}{/if})"
"$URL(http://www.nicovideo.jp/(mylist/[0-9]|my/mylist|api/mylist/list))"
"$SET(#={if $item.item_data.deleted % 8}"
"<span style="position:absolute;"><span style="position:absolute; bottom:-104px; left:0px; z-index:5;">\n"
"<img src="http://local.ptron/delete.gif" alt="削除された動画" />\n"
"</span></span>"
"{/if} \0 title="{$item.item_data.thumbnail_url}")"
"$STOP()"
"|"
"$NEST(<script,\s*src=$AV(http://res.nimg.jp/js/ranking.js*)*,</script>)"
"$URL(http://www.nicovideo.jp/ranking)"
"$SET(#=<script type="text/javascript">"
"Nico.onReady(function () {"
" if (typeof deletedVideoList != "undefined") {"
" deletedVideoList.each(function (vid) {"
" var img = $("video_img_" + vid);"
" if (img) {"
" new Insertion.Before(img.parentNode.parentNode, '<span style="position:absolute;">"
"<span style="position:absolute; top:89px; left:0px;"><img src="http://local.ptron/delete.gif"></span></span>');"
" }"
" });"
" }"
"});"
"</script>)"
Replace = "\r\n"
"\@"

NicoCache_nlと併用している場合のみに対応しています。
サムネ復活、キャッシュアイコン表示、サムネ拡大フィルタのうち二つ以上を併用する場合、 必ずサムネ復活→キャッシュアイコン表示→サムネ拡大の並び順にしてください。
iframeを使用しているため、iframeを消すようなフィルタを入れているなら 必ずそのフィルタのの後に入れてください。
config.propertiesを開いて最後の行に以下を追加してください
nlMovieIdList.listPath= (オミトロンのフォルダのパス)\\Lists\\CacheMovieID.txt C:\Program Files以下にオミトロンを入れてる場合は C:\\Program Files\\Proxomitron\\Lists\\CacheMovieID.txt
既にNicoCache_nlが起動中の場合ここで一度NicoCache_nlを再起動してください。
Cacheicons.zipをダウンロードして解凍し、
中からお好みのアイコンをCache.gifにリネームしてオミトロンのhtmlフォルダにいれてください。
最後に、以下のフィルタを導入してください。 通常版とサムネ拡大併用版とあります。
[Blocklists] List.CacheMovieID = "..\Lists\CacheMovieID.txt"
○通常版(サムネ拡大併用版が下にあります)
[Patterns]
Name = "NicoVideo: NicoCache_nl Cache Movie Marking (071206)"
Active = TRUE
Multi = TRUE
URL = "www.nicovideo.jp/ $TYPE(htm)"
Limit = 512
Match = "(^(^</body>\s</html>))"
"$SET(\#=<iframe src="/cache/idlist" height="0" width="0">CacheList</iframe>\r\n)$STOP()"
""
"|$SET(\0=\r\n<!-- Cache -->\r\n<div style="position:relative;">)"
"$SET(\1=\r\n<div style="position:absolute; top:60px; left:40px;">)"
"$SET(\2=\r\n<div style="position:absolute; top:45px; left:40px;">)"
"$SET(\3=\r\n<a href="cache/\9.flv"><img src="http://local.ptron/cache.gif" alt="
"キャッシュされた動画"></a>)"
"$SET(\4=</div>\r\n</div>\r\n<!---->\r\n)"
""
"(<img alt=$AV((SMILEVIDEO|Photozou))[^>]+>\s+</(p|div)>\s)\#"
""
"((\s+<div style=$AV(margin:4px 0px;)>\s+)\#"
"(<!---->|)$SET(\#=<!-- Cache -->\r\n)\#"
"(<div style=$AV(*60*)>(^(^<img\ssrc=$AV(*/premium.gif)*>))$SET(\#=\2\3<br>\r\n)\#"
"|<div style=$AV(*60*)>$SET(\#=\1\3)\#)<!---->$SET(\#=\r\n<!---->)"
""
"|(\s+<(p|div)(\sstyle=$AV(margin-top:4px;)|)>$SET(\#=\0\1\3\4))\#)"
""
"(^(^*\s+<a\shref=$AV((http://www.nicovideo.jp/|)watch/($LST(CacheMovieID))\9)>))"
""
"|([%e7][%ac][%ac][0-9]+[%e4][%bd][%8d]*<p>)\#"
"(<a * href=$AV((http://www.nicovideo.jp/|)watch/($LST(CacheMovieID))\9)>)$SET(\#=\0\1\3\4)"
Replace = "\@"
○LargeThumbnail併用版
[Patterns]
Name = "NicoVideo: NicoCache_nl Cache Movie Marking Large (071206)"
Active = TRUE
Multi = TRUE
URL = "www.nicovideo.jp/ $TYPE(htm)"
Limit = 512
Match = "(^(^</body>\s</html>))"
"$SET(\#=<iframe src="/cache/idlist" height="0" width="0">CacheList</iframe>\r\n)$STOP()"
""
"|$SET(\0=\r\n<!-- Cache -->\r\n<div style="position:relative;">)"
"$SET(\1=\r\n<div style="position:absolute; top:89px; left:75px;">)"
"$SET(\2=\r\n<div style="position:absolute; top:74px; left:75px;">)"
"$SET(\3=\r\n<a href="cache/\9.flv"><img src="http://local.ptron/cache.gif" alt="
"キャッシュされた動画"></a>)"
"$SET(\4=</div>\r\n</div>\r\n<!---->\r\n)"
""
"(<img alt=$AV((SMILEVIDEO|Photozou))[^>]+>\s+</(p|div)>\s)\#"
""
"((\s+<div style=$AV(margin:4px 0px;)>\s+)\#"
"(<!---->|)$SET(\#=<!-- Cache -->\r\n)\#"
"(<div style=$AV(*60*)>(^(^<img\ssrc=$AV(*/premium.gif)*>))$SET(\#=\2\3<br>\r\n)\#"
"|<div style=$AV(*60*)>$SET(\#=\1\3)\#)<!---->$SET(\#=\r\n<!---->)"
""
"|(\s+<(p|div)(\sstyle=$AV(margin-top:4px;)|)>$SET(\#=\0\1\3\4))\#)"
""
"(^(^*\s+<a\shref=$AV((http://www.nicovideo.jp/|)watch/($LST(CacheMovieID))\9)>))"
""
"|([%e7][%ac][%ac][0-9]+[%e4][%bd][%8d]*<p>)\#"
"(<a * href=$AV((http://www.nicovideo.jp/|)watch/($LST(CacheMovieID))\9)>)$SET(\#=\0\1\3\4)"
Replace = "\@"

03/21 コミュニティページの仕様変更に対応
04/01 マイリスト検索に対応
04/23 http://を省略したwww[0-9]+.から始まるリンクも対応 & mylist説明文用フィルタの更新
06/11 仕様変更に対応・他
06/17 mylistでのエラー修正
※汎用リンク化フィルタ「http Text to Link」はニコニコ動画を除外してください。
URL部分→(^(dic|www|ext|com).nicovideo.jp/)$TYPE(htm)
対応リンク
・外部URL
・動画/静画リンク
・マイリストリンク他
対応ページ
・watchページ
・検索結果形式のページ・ランキング・ユーザーページ
・公開マイリスト検索画面
・外部サムネ(extページ)
・コミュニティページ
[Patterns]
Name = "Nico : description Link [10/08/24]"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)(www|ext|com|live).nicovideo.jp/(^(my/|)mylist(^_search/))"
Limit = 2048
Match = "("
"(<(p|span)\8 class="(vinfo|group)_description">$SET(vinfo_des_type=\8)"
"|<p class="vinfo_last_res">$SET(vinfo_des_type=p)"
"|<p class="(font12|vinfo_description)"[^>]+>$SET(vinfo_des_type=p)"
"|<td width="100%" class="font12" style="background:#efefef;">$URL(http://www.nicovideo.jp/watch)$SET(vinfo_des_type=td)"
"|<(span|strong)\8 class="search_word"[^>]+>$URL(http://www.nicovideo.jp/(search|tag)/)$SET(vinfo_des_type=\8)"
"|<div class="video_res">$URL(http://ext.nicovideo.jp/)$SET(vinfo_des_type=div)"
"|</p>\s<p class="TXT10"[^>]+>$URL(http://ext.nicovideo.jp/)$SET(vinfo_des_type=p)"
"|</strong><br>\s$URL(http://www.nicovideo.jp/openlist/)$SET(vinfo_des_type=td)"
"|<p class="font12" id="prof_txt_1"[^>]+>$URL(http://www.nicovideo.jp/user/)$SET(vinfo_des_type=p)"
""
"|<div class="cnt2"[^>]+>$URL(http://com.nicovideo.jp/community/)$SET(vinfo_des_type=div)"
"|</h3>\s<p>$URL(http://com.nicovideo.jp/video/)$SET(vinfo_des_type=p)"
"|<p class="videoResBody">$URL(http://com.nicovideo.jp/video/)$SET(vinfo_des_type=p)"
"|<p class="desc">$URL(http://com.nicovideo.jp/search/)$SET(vinfo_des_type=p)"
""
"|<div id="stream_description"$URL(http://live.nicovideo.jp/)$SET(vinfo_des_type=div)"
"|<div class="bgm stream_description"$URL(http://live.nicovideo.jp/gate/)$SET(vinfo_des_type=div)"
""
"|</[^>]+>$TST(vinfo_des_type=?*)"
"|<(br|font|b|u)(^(^\s|>))[^>]+>$TST(vinfo_des_type=?*)"
")"
"[^<]++"
")\0"
"("
"(h+ttp://www.nicovideo.jp/|/|)watch/([0-9]+{1,*})\1(\?eco=1|)\2"
"$SET(9=<a href="http://www.nicovideo.jp/watch/\1\2" class="watch" target="_top" style="color:#30F;">watch/\1\2</a>)"
"|(h+ttp://www.nicovideo.jp/|/|)mylist/([0-9]+/|)\1([0-9]+{1,8})\2"
"$SET(9=<a href="http://www.nicovideo.jp/mylist/\2" target="_top">mylist/\1\2</a>)"
"|(h+ttp://www.nicovideo.jp/|/|)user(/[0-9]+|)(/[0-9]+{1,8})\2"
"$SET(9=<a href="http://www.nicovideo.jp/user\2" target="_top">user\2</a>)"
"|(h+ttp://www.nicovideo.jp/|/|)myvideo(/[0-9]+|)(/[0-9]+{1,8})\2"
"$SET(9=<a href="http://www.nicovideo.jp/user\2/video" target="_top">myvideo\2</a>)"
"|(h+ttp://com.nicovideo.jp/community/|community/|)(co[0-9]+{1,*})\1"
"$SET(9=<a href="http://com.nicovideo.jp/community/\1" style="color:#FF8C00;" target="_top">\1</a>)"
"|(h+ttp://ch.nicovideo.jp/channel/|channel/|)(ch[0-9]+{1,*})\1"
"$SET(9=<a href="http://ch.nicovideo.jp/channel/\1" style="color:#FF8C00;" target="_top">\1</a>)"
"|(h+ttp://www.nicovideo.jp/watch/|watch/|)(sm|nm|so|ca|ax|am|fz|yo|nl|ig|na|cw|z[a-e]|om|sk|yk)\1([0-9]+{1,*})\2(\?eco=1|)\3"
"$SET(9=<a href="http://www.nicovideo.jp/watch/\1\2\3" class="watch" target="_top">\1\2\3</a>)"
"|(h+ttp://live.nicovideo.jp/watch/|watch/|)(lv[0-9]+{1,*})\1"
"$SET(9=<a href="http://live.nicovideo.jp/watch/\1" class="watch" target="_top">\1</a>)"
"|(h+ttp://seiga.nicovideo.jp/watch/|watch/|)(sg)\1([0-9]+{1,*})\2"
"$SET(9=<a href="http://seiga.nicovideo.jp/watch/\1\2" class="watch" target="_top">\1\2</a>)"
"|(h+t+(ps+://((^...</$TST(vinfo_des_type)>)[a-z0-9:./?&\-~#=_%;+])+{2,*})\1)\2"
"$SET(9=<a href="htt\1" target="_top" style="color:#F30;">\2</a>)"
"|(www[0-9]+.(^.. <)((^... </$TST(vinfo_des_type)>)[a-z0-9:./?&\-~#=_%;+])+{2,*})\1"
"$SET(9=<a href="http://\1" target="_top" style="color:#F30;">\1</a>)"
"|</$TST(vinfo_des_type)>$SET(vinfo_des_type=) \s\s"
")"
Replace = "\0\9"
mylistのメモや説明文部分の(h|)ttpの文字列をリンクに変更(誤爆の可能性があるかもしれないので自己責任でお願いします。)
[Patterns]
Name = "Nico : description Link [10/06/24] mylist"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/(my/|)mylist|www.nicovideo.jp/api/my(memory|list)/list"
Limit = 1024
Match = "("
"(description:\s\"$SET(mylist_des=true)"
"|\"description\":\"$SET(mylist_des=true)"
"|</a>$TST(mylist_des=true)"
")"
"[^<>"]++"
")\0"
"("
"\",(\s|\")$SET(mylist_des=) \s\s"
"|(h+t+(ps+:(\\/|(^\&(quot|#039|gt|lt);)[a-z0-9:./?&\-~#=_%;+])+)\1)\2$TST(mylist_des=true)"
"$SET(9=<a href=\\"htt\1\\" target=\\"_top\\" style=\\"color:#F30;\\">\2</a>)"
")"
Replace = "\0\9"

動画一覧などに表示される最新コメントの吹き出しを消します。
[Patterns] Name = "Nico: Fukidashi killer [2008/12/6] - 186" Active = TRUE URL = "(www|tw).nicovideo.jp/(^watch) $TYPE(htm)" Limit = 512 Match = "(<(div|p)\1\s[^>]++class=$AV(res|*thumb_res*|comment|*res_summary*|vinfo_last_res)&$NEST(<$TST(\1),</$TST(\1)>))" "|onclick=$AV(*switchCategoryTag*)" "|onMouse(over|out)=$AV(*RES_*)"
このフィルタがあればトップページのカテゴリタグのリンクの置き換えのフィルタは不要です。
(Top CategoryTag ReplaceフィルタはFukidashi killerの一部を抜き出して作られたフィルタです)


動画一覧などを見ると、「再生:600 | コメント:63 | 10.5%」の様に表示されるようになります
再生:0 | コメント:1 | Infinity% の様になる事がありますが、気にしない(自作自演とは限らない様子)
※Fukidashi killerの「複数のルールのマッチを許可する」にチェックを入れれば併用可能
[Patterns]
Name = "NicoVideo: comment rate (080525)"
Active = TRUE
URL = "www.nicovideo.jp/"
Limit = 128
Match = "[%E5][%86][%8D][%E7][%94][%9F][%EF][%BC][%9A]"
"<strong[^>]+>([0-9,]+)\0</strong>"
"\8 "
"[%E3][%82][%B3][%E3][%83][%A1][%E3][%83][%B3][%E3][%83][%88][%EF][%BC][%9A]"
"<strong[^>]+>([0-9,]+)\1</strong>"
"&&\9"
Replace = "\9<script>document.write(' \8 <b>'+(('\1').replace(/,/g, '')-0 ? Math.round(('\1').replace(/,/g,'') / ('\0').replace(/,/g,'') *1000)/10 : 0)+'%</b>')</script>"


リストに動画IDがあればサムネやコメントなどを省略します。
[HTTP headers] In = TRUE Out = FALSE Key = "URL: Nico ADDLST Movie ID (071117) [in]" Match = "http://www.nicovideo.jp/watch/(^$LST(MovID)(^?))([a-z][a-z][0-9]+)\0(^?)" Replace = "$ADDLST(MovID,\0(^?))"
[Blocklists] List.MovID = "..\Lists\MovieID Log.txt"
[Patterns]
Name = "Nico: Ranking Watched MovID to Name Only (080211) thumb01"
Active = TRUE
Multi = TRUE
URL = "www.nicovideo.jp/ranking/$TYPE(htm)"
Limit = 2048
Match = "$NEST(<tr[^>]+>,\s+"
" $NEST(<td[^>]+>,*$NEST(<p[^>]+>,\2,</p>)*$NEST(<p[^>]+>,\3,</p>)*,</td>)\s+"
" $NEST(<td,</td>)\s+"
" $NEST(<td,*($NEST(<h3>,*<a[^>]++href=$AV(http://www.nicovideo.jp/watch/($LST(MovID))\4)*,</h3>))\0*,</td>)"
"*,</tr>)"
Replace = "<tr>\r\n"
" <td style="TEXT-ALIGN: right">\2</td>\r\n"
" <td style="TEXT-ALIGN: center"><a href="http://www.nicovideo.jp/thumb/\4""
" onMouseOver="return popThumb('thumb/\4', 0)" onMouseOut="return nd()">\3</a></td>\r\n"
" <td>\0</td>\r\n"
"</tr>"
[Patterns]
Name = "Nico: Ranking Watched MovID to Simple (091103)"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/ranking(^/*/*/ichiba)"
Limit = 2560
Match = "$NEST(div,([^>]++class="thumb_frm"[^>]++>)\9(*<td style="padding:0 4px;)\0">"
" (<p[^>]++><a[^>]++href=$AV(*watch/($LST(MovID))\2))\3>"
"(<img[^>]++)\4( class=$AV(video_w96*)[^>]++>*)\5<h3(>*</h3> )\6"
"<p class="font12">*</p>( </div> <p class="vinfo_last_res">*</p>|)(*)\7,</div>)"
"$SET(#=div\9\0 width:74px; overflow:hidden;"><a href="http://www.nicochart.jp/watch/\2" title="\2">\1</a>"
"\3 onMouseOver="return popThumb('thumb/\2', 0)" onMouseOut="return nd()">"
"\4 style="border:solid 1px #333; width:72px; height:54px;"\5<div style="margin:0 0 2px 0; overflow:hidden; "
"width:576px;""
"><h3 \6$GET(ra_1)</div>$GET(ra_2)\7</div>)"
Replace = "\@"
2列化と併用する場合は"width:576px"を"width:388px;"に変更
[Patterns]
Name = "Nico: Mylist Watched MovID to Name Only (071114) test07"
Active = TRUE
URL = "www.nicovideo.jp/mylist/[0-9]+/[0-9]$TYPE(htm)"
Limit = 4096
Match = "$NEST(<tr,(\sid=$AV(mylist[0-9]+)[^>]+)\1>\s+"
" ($NEST(<td,*<a\shref=$AV(watch/($LST(MovID))\0)>*,</td>)"
" |$NEST(<td,*src=$AV(img/thumb/del_img.jpg)*,</td>)$SET(\0=Deleted!))\s+"
" $NEST(<td([^>]+)\2>,*($NEST(<h3,</h3>))\3*,</td>)\s+"
"(^<td$STOP()),</tr>)"
Replace = "<tr\1>\r\n"
" <td><a href="watch/\0">\0</a></td>\r\n"
" <td\2>\3</td>\r\n"
"</tr>"
[Patterns]
Name = "Nico: Search Watched MovID to Name Only (080708) thumb07"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/((^?)|\?g=|search|tag|recent|newarrival|myvideo)"
Limit = 2048
Match = "$NEST(<td,([^>]+>*<div\sclass=$AV(cmn_thumb_frm)[^>]+>)\1\s+<div*"
"$NEST(<a,(\s[^>]++class=$AV(video video_info_title)\shref=$AV(*watch/($LST(MovID))\3)[^>]+)\4>\5,</a>)"
"*,</td>)"
Replace = "<td\1\r\n<p class="TXT12">"
" <a\4 onMouseOver="return popThumb('thumb/\3', 0)" onMouseOut="return nd()">[img]</a>"
" <a\4>\5</a>"
"</p>\r\n</div></td>"
[Patterns]
Name = "Nico: Search Watched MovID to thumb_img_S (091103a)"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/((^?)|\?g=|search|tag|recent|newarrival|myvideo|hotlist)"
Limit = 4096
Match = "$NEST(div,([^>]++class=$AV(thumb_frm*)[^>]++>)\0*"
"(<table*<p[^>]++> <a[^>]++href=$AV(watch/($LST(MovID))\1))\2(> <img[^>]++)\3(class="video_w(80|96)"|)(> </a> </p>)\4"
"(* <p class=")\5vinfo_length*(</td>*<td[^>]++>)\6*<p[^>]++>( <img[^>]++)\7>*(<strong*</p>)\8\9</span></a></p>(*($NEST(<p,"
" class="font10"*,</p>))\#|)*,</div>)"
Replace = "div\0\n\2 onMouseOver="return popThumb('thumb/\1', 0)" onMouseOut="return nd()"\3width="48" height="36" "
"style="border:solid 1px #333;"\4\6\5font10">\7 style="margin:0 0px -1px 0;">\n\8\9</span></a></p>\n\#\n</table>\n</div>"

[Patterns]
Name = "Nico: Category-PlayingTimeChecker-[MULTI TIME]+View (100606)"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/((^?)|top/)"
Limit = 4096
Match = "onclick=$AV(switchCategoryTag*)"
"|(> )\#$NEST(<div,([^>]++class=$AV(thumb_frm*)[^>]++style=")\0\1""
"(*<p class="vinfo_length"><span>)\2"
"(([#0:2])\3$SET(4=background:#efefef; border:#ECECEC)"
"|([#3:6])\3$SET(4=background:#e7e7e7; border:#E4E4E4)"
"|([#7:12])\3$SET(4=background:ghostwhite; border:lavender)"
"|([#13:22])\3$SET(4=background:#eFeFe5; border:#FDF6C9)"
"|([#23:*])\3$SET(4=background:#eFe9e9; border:mistyrose)"
")(*)\6,</div>)$SET(#=<div\0\1 \4"\2\3\6</div>)"
"|$NEST(<div,([^>]++class=$AV(thumb_frm*)[^>]++style=")\0\1""
"(*<strong class="vinfo_view")\2 >"
"(([0-9]+,[0-9]+,[0-9]+)\3$SET(r_04=navy)$SET(4= solid 4px; padding:4px; color:$GET(r_04))$SET(5=font-size:14px;)"
"|([#500:999],[0-9]+)\3$SET(r_04=#000064)$SET(4= solid 3px; padding:5px; color:$GET(r_04))$SET(5=font-size:14px;)"
"|([#100:499],[0-9]+)\3$SET(r_04=#000049)$SET(4= double 3px; padding:5px; color:$GET(r_04))$SET(5=font-size:12px;)"
"|([#10:99],[0-9]+)\3$SET(r_04=black)$SET(4= solid 2px; padding:6px; color:$GET(r_04))$SET(5=font-size:12px;)"
"|([1-9],[0-9]+)\3$SET(r_04=#404040)$SET(4= solid 1px; padding:7px; color:$GET(r_04))$SET(5=font-size:10px;)"
"|([0-9]+{3})\3$SET(r_04=#555555)$SET(4= dotted 0px; padding:8px; color:$GET(r_04))$SET(5=font-size:10px;)"
"|([#0:99])\3$SET(r_04=gray)$SET(4= dashed 0px; padding:8px; color:$GET(r_04))$SET(5=font-size:12px;)"
")(*)\6,</div>)$SET(#=<div\0\1 \4;"\2 style="\5">\3\6</div>)"
"|(<a href="(openlist|mylistcomment/video)/([a-z][a-z]|)[0-9]+")\#$SET(#= style="color:$GET(r_04)\;")"
"|(<span\sid="item[0-9]+_uad_point"[^\r\n]++<a)\#(^(^ href))$SET(#= style="color:$GET(r_04)\;")"
Replace = "\@"

FireFoxで動作確認。
新着、検索結果とランキングが対象。変えなくていいところはURLのMatchから消しておく。
使い方
①新着、検索結果を3列表示にしたかったらMatch7行目のcolumnの値を3に、
ランキングを2列表示にしたかったらMatch23行目のcolumnの値を2にしておく。
②新着、検索結果はMatch8行目の、ランキングはMatch24行目のs.leftの値(左からの距離)を調整する。
③Match下から2行目の数値を変えて幅を調整する。新着、検索結果は250、ランキングは464、350になってるところを変える。
④②と③を繰り返す。
コミュニティとかは非表示にしてます。
IE7で試したらMatch18行目 list.innerHTML=""; を消せば使えるみたい。
[Patterns]
Name = "Nico:Change Column (090208)"
Active = TRUE
URL = "$TYPE(htm)www.nicovideo.jp/(newarrival|recent|search|tag|ranking)"
Limit = 128
Match = "(var country = \w)\#$SET(#=\n"
"Nico.onReady(function(){"
"var s=$("PAGEBODY").style;"
"s.position="relative";"
"if($("newarrival")){"
"var list=$("newarrival");"
"var column=3;"
"s.left="0px";"
"var td=list.getElementsByTagName("td");"
"var tbody=document.createElement("tbody");"
"while(td.length){"
"var tr=document.createElement("tr");"
"tr.vAlign="top";"
"for(var i=0;i<column&&td.length;i++)"
"tr.appendChild(td[0]);"
"tbody.appendChild(tr);"
"}"
"list.innerHTML="";"
"list.appendChild(tbody);"
"}"
"if($("ranking")){"
"var list=$("ranking");"
"var column=2;"
"s.left="0px";"
"var div=list.getElementsByTagName("div");"
"var table=document.createElement("table");"
"var tbody=document.createElement("tbody");"
"while(div.length){"
"var tr=document.createElement("tr");"
"tr.vAlign="top";"
"for(var i=0;i<column&&div.length;i++){"
"var td=document.createElement("td");"
"td.appendChild(div[0]);"
"tr.appendChild(td);"
"}"
"tbody.appendChild(tr);"
"}"
"table.appendChild(tbody);"
"list.innerHTML="";"
"list.appendChild(table);"
"}"
"document.body.style.display="";"
"});)"
"|(<body)\#$SET(#= style="display:none;")"
"|(<table width=")\#720$SET(#=100%)"
"|(<table border="0" \w \w summary="list")\#$SET(#= id="newarrival")"
"|(<div class="mb8p4")\#> <h1>$SET(#= style="display:none;"><h1>)"
"|(<td width="240")\#$SET(#= style="display:none;")"
"|(<div style="margin-bottom:16px;)\#$SET(#=display:none;)"
"|(<td width="560")\#$SET(#= id="ranking")"
"|(width(:|="))\#(336$SET(#=250)|536$SET(#=464)|424$SET(#=350))"
"|(<td><div style="width:240px;)\#$SET(#=display:none;)"
Replace = "\@"

[HTTP headers] In = TRUE Out = TRUE Key = "URL: NicoVideo NICONI-KOUKOKU Killer (both) [110601]" URL = "(uad-api.nicovideo.jp/|api.uad.nicovideo.jp/(Uads(Video|Banner)Service/))" Replace = "\k"
検索時一覧に表示されるニコニ広告、タグ検索時の上部ニコニ広告、動画再生中の末尾に表示されるニコニ広告、に対応しています。
(もし他にちゃんとしたのがあれば、どなた様でも結構ですので、修正版などUPして頂けると助かります…)

[HTTP headers] In = TRUE Out = TRUE Key = "URL: Nico Nico Appli killer [both]" URL = "res.nimg.jp/swf/appli/applibar.swf" Replace = "\k"
無かったようでしたので、追加しました。


5秒ごとに自動更新
[Patterns]
Name = "NicoVideo: live auto reload"
Active = TRUE
URL = "live.nicovideo.jp/watch/lv $TYPE(htm)"
Limit = 256
Match = "[%E7][%8F][%BE][%E5][%9C][%A8][%E3][%80][%81][%E6][%BA][%80][%E5][%B8][%AD][%E3][%81][%AB][%E3][%81][%AA][%E3][%81][%A3][%E3][%81][%A6][%E3][%81][%8A][%E3][%82][%8A][%E3][%81][%BE][%E3][%81][%99]"
"&&\0"
Replace = "\0<script>"
"setTimeout(function(){"
"location.reload()"
"},5000)"
"</script>\k"

・
NicoLive_Header.zip(10/03/24) → 展開したNicoLive_Headerフォルダをhtmlフォルダの下に置き、フォルダ内のHeader.txtを編集してリンクの追加、削除、並び替えなどをしておく。
・フィルタのMatch1行目の変数の値を設定しておく。
sort1 → カテゴリリンクを選んだ時の並び順、sort2 → 検索結果の並び順、bar_w → 検索バーの長さ。
[Patterns]
Name = "NicoLive:Header (10/03/24)"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)live.nicovideo.jp/"
Limit = 8192
Match = "$NEST(<div,\sid="navi"$SET(sort1=start)$SET(sort2=start)$SET(bar_w=170px)"
"(*($NEST(<a,\shref=$AV(https://secure.nicovideo.jp/secure/login_form*)*,</a>))\0$SET(login=\0)|"
"$SET(login=<a href="javascript:void(0);" onclick="showOBJ('headmenu_my');">マイページ▼</a>))"
"*,</div>)$SET(#=<div id="navi">\n<!--$FILE(../html/NicoLive_Header/Header.txt)-->\n</div>)"
"|$NEST(<div,\sid="header"*,</div>)$SET(#=<div id="header"></div>)"
"|\$GET\((login$SET(#=$GET(login))|sort1$SET(#=&sort=$GET(sort1))|sort2$SET(#=$GET(sort2))|bar_w$SET(#=$GET(bar_w)))\)"
Replace = "\@"

・カテゴリ、検索ページにある並び替えのセレクトボックスをリンクにします。
・ヘッダメニューと「現在~番組が生放送中!!」の下のカテゴリリンクを選んだ時のデフォルトの並び順を変更します。
フィルタのMatch1行目最後のsortの値を設定しておいてください。
start→新しい番組順、view→視聴者が多い順、tnum→コメントが多い順、level→コミュニティレベルが高い順
grow→話題のコミュニティ順、actv→活発なコミュニティ順 (←2つはプレミアム会員限定)
[Patterns]
Name = "NicoLive:SortLink (100324)"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)live.nicovideo.jp/"
Limit = 2048
Match = "((<div\sclass="popup_item"[^>]+>|<li\sclass=$AV(ctgr*)>)\s+<a\shref=\"http://live.nicovideo.jp/recent\?tab=[a-z0-9]+(^(^\")))\#$SET(#=&sort=start)"
"|$NEST(<form,\sname="sort" $URL(http://live.nicovideo.jp/ ((recent)\0(*[?&](tab=[^&]+)\1$SET(mode=\0?\1&)|(jk)\1$SET(mode=\0\1?))"
"|(search)\0$SET(mode=\0?)((/([^?]+)\0|*[?&]word=([^&]+)\0)$SET(word=&word=\0)&(*[?&](search_mode=closed)\0$SET(closed=&\0)|))"
") ) (*<option\svalue=$AV(\0)$SET(sort=sort=\0)([^>]++selected="selected"$SET(style= style="color:red;")|$SET(style=))[^>]+>([^<]+)\0$SET(text=\0)"
"$SET(link=$GET(link)<a href="$GET(mode)$GET(sort)$GET(word)$GET(closed)"$GET(style)>$GET(text)</a>\n)"
")+ *,</form>)$SET(#=<div style="margin-bottom:4px;">\n$GET(link)</div>)"
"|$NEST(\(,\s[%E3][%83][%97][%E3][%83][%AC]*[%E9][%99][%90][%E5][%AE][%9A]\s!\s,\))(^(^</a>))"
Replace = "\@"

[Patterns] Name = "NicoLive:PlayerPosition (100322)" Active = TRUE Multi = TRUE URL = "$TYPE(htm)live.nicovideo.jp/watch/" Limit = 32767 Match = "($NEST(<div,\sid="watch"*,</div>)*)\0($NEST(<div,\sid="WatchPlayer"*,</div>))\1$STOP()" Replace = "\1\0"

・運営が設定したNGワードを消して自分で用意したものを追加します。運営NGワードを消さずに残す場合はフィルタのMatch2行目を消しておいてください。
・
NicoLive_ConfigureNGword.txt → NGにしたいもののリストを編集してhtmlフォルダに置いておく。
NGワードの追加例 : <ngclient readonly="true"><type>word</type><source>テスト</source><register_time>1213870404</register_time></ngclient>
typeはNGの種類でwordならNGワード、idならNGユーザーID、commandならNGコマンド。sourceはNGにする語句。register_timeはNG登録日時。
typeがwordの場合は、ngclientタグにuse_case_unify="true"追加でひらがなカタカナや全角半角を区別しなくなり、is_regex="true"追加で正規表現が使えるようになります。(どちらかのみ)
[Patterns]
Name = "NicoLive:ConfigureNGword (100320)"
Active = TRUE
URL = "(watch|ow).live.nicovideo.jp/api/configurengword"
Limit = 256
Match = "(^(^</response_ngword))$STOP()$SET(#=$FILE(../html/NicoLive_ConfigureNGword.txt))"
"|$NEST(<ngclient,</ngclient>)"
Replace = "\@"

実況を除いた各カテゴリ、検索結果のなかでNGリストに該当するものを非表示にします。
チェックする項目はchやcoの番号がリストに含まれる語句と一致するかどうか、タイトル、説明文、コミュニティ名(長かったら省略されたもの)の中にリストに含まれる語句があるかどうかです。
使用するリスト名はNGtitleLiveとしてあります。別のリストを使う場合はNGtitleLiveとなっているところを書き換えてください。
[Patterns]
Name = "NicoLive:NGtitle (100324)"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)live.nicovideo.jp/(recent(^jk)|search)"
Limit = 2048
Match = "(^(^<div\sid="liveItemsWrap"))$SET(inner=1)$SET(column=...)$SET(col=$GET(column))\s"
"|<div\sclass="liveItems\sclearfix">$TST(inner=1)"
"|(^(^<div\sclass=\"liveItem(_[a-z]+|)(\s|\")))$TST(inner=1)"
"($NEST(<div,"
"*<img\ssrc=$AV((http://icon.nimg.jp/(community|channel)/s/|thumb/)([^.]+)\0*)$SET(id=\0)"
"*<a\shref=$AV(http://live.nicovideo.jp/watch/*)\stitle=$AV(\0)$SET(title=\0)"
"*</h3>\s<p>\s$SET(des=)((((^<wbr />\​|\s+</p>)?)+)\0(<wbr />\​|\s+)$SET(des=$GET(des)\0))+"
"*<div\sclass="liveItemInfo">\s<p>$SET(com=)((((^<wbr />\​|</p>)?)+)\0(<wbr />\​|)$SET(com=$GET(com)\0))+"
"($TST(id=$LST(NGtitleLive))|$TST(title=*$LST(NGtitleLive)*)|$TST(des=*$LST(NGtitleLive)*)|$TST(com=*$LST(NGtitleLive)*))"
"*,</div>)<!-- div.uc -->"
"|($TST(col=$TST(column))$SET(#=<div class="clearfix liveItems">)$SET(col=.)|$SET(col=$GET(col).))(<div)\#$SET(#= id="item_$GET(id)"))"
"|(class=\"liveItem(_[a-z]+|))\#(\slast(^$TST(col=$TST(column)))|(^(^\"))$TST(col=$TST(column))$SET(#= last))"
"|</div><!-- liveItems\sclearfix -->$TST(inner=1)"
"|(</div><!-- div.uc -->)\#$TST(col=$TST(column))$SET(#=</div><!-- clearfix liveItems -->)"
"|(^(^</div><!-- #liveItemsWrap -->))($TST(col=$TST(column))|$SET(#=</div><!-- clearfix liveItems -->))$STOP()"
Replace = "\@"
↓放送開始時間の横にNGボタンを追加するフィルタです。使用する場合は上のフィルタと併用してください。
chやcoの番号と注釈としてタイトル、コミュニティ名(長かったら省略されたもの)がリストに追加されます。検索ページを利用するのでログインしていない場合はNGに追加されません。
[Patterns]
Name = "NicoLive:Addlist NGtitle (100324)"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)live.nicovideo.jp/(recent(^jk)|search(^/NGtitleLive_([^_]+)\0_$TST(\0=$LST(NGtitleLive))))"
Limit = 512
Match = "(<body(\s[^>]+| )>)\#(^$URL(*/search/NGtitleLive))$SET(#=\n<script type="text/javascript"><!--\nfunction addlist(com,id) {\n"
"new Ajax.Request('http://live.nicovideo.jp/search/NGtitleLive_'+id+'_'+encodeURIComponent(com),{ onSuccess:function(){ if($('item_'+id)) $('item_'+id).style.display='none'; } });\n"
"}\n//--></script>\n<style type="text/css"><!-- a.ng, a.ng:hover { color:#000; font-size:10px; text-decoration:none; } //--></style>)"
"|(<p\sclass="start_time"><strong>[^<]+)\#"
"$SET(add1=)$TST(com=((((^\�+39;|[./])?)+)\0(\�+39;$SET(code=&\\#39;)|.$SET(code=&\\#46;)|/$SET(code=&\\#47;)|$SET(code=))$SET(add1=$GET(add1)\0$GET(code)))+)"
"$SET(add2=)$TST(title=((((^\�+39;|[./])?)+)\0(\�+39;$SET(code=&\\#39;)|.$SET(code=&\\#46;)|/$SET(code=&\\#47;)|$SET(code=))$SET(add2=$GET(add2)\0$GET(code)))+)"
"$SET(#=<a href="javascript:addlist('$GET(add1) - $GET(add2)','$GET(id)');" class="ng">[NG]</a>)"
"|(^(^var\ssearch_word=$AV(NGtitleLive_\0_\1)))"
"$TST(\1=((((^\&#0+(39|46|47);|\")?)+)\2(\&#0+(39$SET(char=')|46$SET(char=.)|47$SET(char=/));|\"$SET(char=")|$SET(char=))$SET(add=$GET(add)\2$GET(char)))+)"
"$ADDLST(NGtitleLive,\r\n# $WESC($GET(add)))$ADDLST(NGtitleLive,\r\n\0)$STOP()"
Replace = "\@"

最新の15件を表示しています。 コメントページを参照