![]() |
Gallery/nicovideo/obsolete最終更新: 2020-11-06 (金) 04:09:32 (1123d) |
ニコニコ動画関連フィルタのページ軽量化のため、現在動作せずメンテナンスされていないフィルタをこちらに移動しました。
コメントアウトすると参考にしたり修正するのに不便なのでしないでください。
どうしても省略したい場合は、
#region(省略 ※+クリックで表示 JavaScript必須) 省略したい部分 #endregion
としてください。
修正して動作するようにした場合は元のページに戻して下さい。
原宿版とGINZA版は http://www.nicovideo.jp/ver/harajuku から切り替え可能 → 原宿版は2013/12/3で終了 → #back_to_the_harajyukuで原宿版に戻せる
開発終了
省略 ※+クリックで表示 JavaScript必須 |
もうほんとにビックリした!MSIE6に偽装するだけで原宿にもどるでぇー!大勝利!
wrapperではNMV動画が再生できないので、NMV動画では偽装しないようにした&ニコ生では無意味なのでニコ生を無視するようにした
[HTTP headers] In = FALSE Out = TRUE Key = "User-Agent: NicoVideo Back to HARAJUKU (out) 2014/01/19" URL = "([^/]++.|)nicovideo.jp/(^watch/(nm|lv)[0-9])" Replace = "Mozilla/4.0 (compatible; MSIE 6.0; Windows XP)"
[Patterns] Name = "NicoVideo: WatchCushion [2012/06/06]" Active = TRUE URL = "[^/.]+.nicovideo.jp/watch/?$TYPE(htm)$OHDR(Referer: (^http(s|)://([^/]++.|)(nicovideo|smilevideo|nicochart).jp/)?)" Limit = 128 Match = "if \( so.write \( $AV(flvplayer_container) \) \) { }" "$STOP()" Replace = "if (true) {\r\n" " writeFlash = function () { so.write("flvplayer_container") };\r\n" " document.getElementById('flvplayer_container').innerHTML = '<button onclick="writeFlash()" style="font-size:x-large; display:block; width:50%; margin:auto">Load Player</button>';\r\n" "}\r\n"
「何の動画か判らずに開く → 動画が勝手にキャッシュされる」というのが嫌な人用 通信節約にもなる。
Refererが空の場合(お気に入りから開いた場合など)もボタンが表示されるようにするには、
「$OHDR(Referer: (^http(s|)://([^/]++.|)(nicovideo|smilevideo|nicochart).jp/)?)」を
「(^$OHDR(Referer: http(s|)://([^/]++.|)(nicovideo|smilevideo|nicochart).jp/))」に置換してください。
AS3系のNMM動画(nm○○○○○○○)をwrapper等で取得し、読み込めるようにします。
※www.nicovideo.jp/api~の変更に伴う更新 FireFoxでのみ動作確認 決め打ちです
2012/07/12追記 読み込めないNMM動画についてバイパス時と比較したところ新プレイヤーと同じファイルを読みに行っており、それは読み込めるNMM動画と同じであることが分かりました。読み込める動画は動画ファイルのURLをブラウザにぶちこんでも再生できますが、読み込めない動画は403forbiddenになります。意味が分かりません~~。
一例:
smile-pso51.nicovideo.jp/smile?s=~ NG
smile-psu61.nicovideo.jp/smile?s=~ OK
[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を併用すると直るかも。
[HTTP headers] In = TRUE Out = TRUE Key = "URL: NicoVideo: always use oldplayer (both) swf" Match = "http://www.nicovideo.jp/swf/new/nicoplayer.swf $JUMP(http://www.nicovideo.jp/swf/nicoplayer.swf)"
新プレイヤーにアクセスすると、自動的に旧プレイヤーを参照するフィルタ。
「$JUMP」の前に「(^$KEYCHK(N))」などを入れて、特定のキーを押しながら読み込んだ場合のみ無効にする用にした方が便利かも。
削除候補、とりあえずコメントアウト
元ネタ:【教えて君は】ニコニコ動画専用オミトロン【半年ROMれ】
※#iroiroを使用する場合不要です
※マイリストが作成されていないと表示されません ※現在動作しません(修正版が2chにあった筈) 070619 Firefoxで動かなくなってしまったのを修正 070618 Operaでも動くように修正 watch_naisho がなくなったので全画面へのリンクを削除
[Patterns] Name = "NicoVideo: size change add (070619) for NOT IE" Active = TRUE URL = "www.nicovideo.jp/watch/(^$OHDR(User-Agent: *MSIE))" Limit = 100 Match = "(id="mylist_add_status">([^<]+|)</td>([^<]+|)</tr>([^<]+|)</table>([^<]+|)</form>)\0" Replace = "\0<table border="0" cellspacing="4" cellpadding="0">" "<tr><td class="TXT12"><strong>サイズ:</strong></td><td>\n" "<script type="text/javascript"><!--\n" "function size_change(temp) {\n" "x=parseFloat(temp);if(x!=0){y=Math.round(x*0.5625);$('flvplayer').style.width=x+'px';$('flvplayer').style.height=y+'px'}\n" "}\n//-->\n</script>\n" "<button onclick="size_change('480')" title="256x192(480x270)">x0.5</button>\n" "<button onclick="size_change('960')" title="512x384(960x540)">x1.0</button>\n" "<button onclick="size_change('1440')" title="768x576(1440x810)">x1.5</button>\n" "<button onclick="size_change('1920')" title="1024x768(1920x1080)">x2.0</button> \n" "<button onclick="size_change('600')" title="320x240(600x338)">x1.0</button>\n" "<button onclick="size_change('900')" title="480x360(900x506)">x1.5</button>\n" "<button onclick="size_change('1200')" title="640x480(1200x675)">x2.0</button>\n" "<button onclick="size_change('1500')" title="800x600(1500x844)">x2.5</button>\n" "<button onclick="size_change('1800')" title="960x720(1800x1013)">x3.0</button> \n" "</td></tr></table>$STOP()"
削除候補、とりあえずコメントアウト
マイリストからアクセスしたwatch移行の数字だけのアドレスを通常通りのsmアドレスに置き換えます(8月24日更新)
Name = "Nico: Redirect unique address (070815) custom02" Active = TRUE URL = "www.nicovideo.jp/watch/[0-9]+(^?)$TYPE(htm)" Limit = 512 Match = "$NEST(<script\stype=$AV(text/javascript)>,*so.addVariable\($AV(v)\,\s$AV(([0-9]+*)\0)\);*,</script>)$STOP()" Replace = "\k<meta http-equiv='Refresh' content='0; url=http://www.nicovideo.jp/watch/\0' />"
iroiro+wrapperを使用する場合、以下のフィルタと入れ替えてください。 マイメモリーが見れなくなるのを修正
[Patterns] Name = "NicoVideo: Redirect unique address (070917a)" Active = TRUE URL = "www.nicovideo.jp/watch/[0-9]+(^?)$TYPE(htm)" Limit = 512 Match = "video_id=$AV((^[0-9])\0)$STOP()" Replace = "video_id='\0';" "if (document.getElementById('mymemory_add_submit'))" " location.href = 'http://www.nicovideo.jp/watch/\0';"
[Patterns] Name = "Nico: GetOwnerName (071230)" Active = TRUE URL = "www.nicovideo.jp/watch/$TYPE(htm)" Limit = 256 Match = "</body>$STOP()" Replace = "<script type="text/javascript" charset="utf-8" src="http://local.ptron/getOwnerName.js"></script>" "</body>"
[HTTP headers] In = TRUE Out = TRUE Key = "URL: NicoVideo: Get Video Owner Name (both) (080305)" Match = "http://www.nicovideo.jp/watch/([sn]m|)[0-9]+\?bweb@(www.smilevideo.jp/allegation/allegation/[0-9]+)\0$FILTER(false)" Replace = "$RDIR(http://\0)"
[Patterns] Name = "NicoVideo: hide tags toggle HTML5 (191110)" Version = "" Author = "" Comment = "" Active = TRUE Multi = FALSE URL = "www.nicovideo.jp/watch/*" Bounds = "" Limit = 256 Match = "(<li><a href="/my/history">[^>]++</a></li>)\#$SET(#=<style> .TagContainer { display:none } </style>\n" "<script> function open_Tag_3() { document.querySelector('.TagContainer').style.display = document.querySelector('.TagContainer').style.display=== 'none' ? 'block' : 'none' } </script>\n" "<li><a href="javascript:void(0)" style="font-size:12px;" onclick="open_Tag_3()">タグを開閉する</a></li>)" Replace = "\@"
NicoVideo: hide tags toggle (081004) を参考に作らせていただきました。「タグを開閉する」ボタンは、右上のメニューの「視聴履歴」の下にあります。デフォルトでは「非表示」状態です。
[HTTP headers] In = TRUE Out = TRUE Key = "URL: NicoVideo JIHOU Killer (both)" URL = "(flapi|www).nicovideo.jp/api/getmarquee" Replace = "\k"
※「送信するヘッダフィルタ」か「受信するヘッダフィルタ」のどちらかのみが有効になっている場合も動作するように both にしています。
www.nicovideoはもう使われていない?
概要
動作内容
問題点
[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))"
&ref(): File not found: "NicoVideo_dl_xml.zip" at page "Gallery/nicovideo/obsolete";
※試作品です ブラウザを選ばない…筈
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 = "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 = "\@"
&ref(): File not found: "itabd.png" at page "Gallery/nicovideo/obsolete";
[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 = "\@"
&ref(): File not found: "itab.zip" at page "Gallery/nicovideo/obsolete";を展開後フォルダごと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
(自動再生許可と組み合わせて、自動再生の使い分けが出来る)
&ref(): File not found: "auto_play.js" at page "Gallery/nicovideo/obsolete";
を保存して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>"
&ref(): File not found: "thumbnail right.png" at page "Gallery/nicovideo/obsolete";
※上の画像は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をグローバル変数に代入必須
&ref(): File not found: "thumb left.jpg" at page "Gallery/nicovideo/obsolete";
[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 = "\@"
マイリストコメント等のタブも消えます
&ref(): File not found: "thumbnail_left.jpg" at page "Gallery/nicovideo/obsolete";
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 = "\@"
こちらはマイリストコメント等のタブは残ります
&ref(): File not found: "NicoWatch Nanika_switch (111012).txt" at page "Gallery/nicovideo/obsolete";
主な機能
サムネ(クリックでニコニコチャートへリンク)、コメント、タグ、マイリスト、プレーヤー、ヘルプ、メニュー、
動画下広告、市場、フッタ上広告、フッタの表示・非表示を切り替えるボタン形式のスイッチを追加します
その他機能
"詳細情報・メニューを隠す"ボタン削除、投稿者情報などのレイアウト変更
iroiro併用可(iroiro_conf.jsの設定を"del_footer = false;"にしてください)
※./obsolete#iroiro?を使用する場合、このフィルタは無効にしないとダメかも?
概要
問題点
導入
[HTTP headers] In = TRUE Out = TRUE Key = "URL: NicoVideo: www.nicovideo.jp/api/ -> flapi (both)" Match = "([^:]+:/+)\#www.(nicovideo.jp/api/)\#\#" Replace = "$RDIR(\#flapi.\@)"
# Ajax はホスト部分が一致しないとリクエストを出せないので、$RDIR() で透過的に別ホストにリダイレクトさせている
[Patterns] Name = "NicoVideo: add download link [2012-05-30 19] swf" Active = TRUE URL = "www.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',\r\n" " {\r\n" " asynchronous: true,\r\n" " method: 'post',\r\n" " parameters: 'v='+Video.v,\r\n" " onComplete: function(a){\r\n" " var movie_url = decodeURIComponent(a.responseText.match(/url=([^&]+)/)[1]);\r\n" " var obj_title = _d.getElementById('video_title');" " var title = obj_title.innerHTML.replace(/<.*?>/g, '');\r\n" " var filename = ''\r\n" " /* ID */\r\n" " + Video.id + (/low$/.test(movie_url) || (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" " + '.' + (!/low$/.test(movie_url) && window.so && !so.getVariable('eco') && so.getVariable('movie_type') ? so.getVariable('movie_type') : 'flv')\r\n" " ;\r\n" " " " obj_title.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"
変更点・更新履歴
削除候補、とりあえずコメントアウト
※IDは偽装可能です 現在はID偽装不能ですが、暗号化された上に、毎日変わる&動画によってIDが変わるので、NGIDは殆ど使い物になりません
[Patterns] Name = "NicoVideo: BlackListID killer (071207)" Active = TRUE URL = "msg.nicovideo.jp/[0-9]+/api/(^?)" Limit = 512 Match = "<chat(^(^\s))((\s(^user_id=)[^">]+\"[^"]+\")+\suser_id=$AV($LST(NicoVideo_NGID))([^">]+\"[^"]+\")+[^>]+>)\0*</chat>( </packet>$SET(1=<chat\0</chat></packet>)|)" Replace = "\1"
070806 $TYPE(oth) を削除&「[] 」が残るのを直した ※空行が残りますが、それを消すとコメント欄が真っ白になり表示されなくなります 070716 リスト名を BlackList から NicoVideo_NGID に変更 & ファイル名を nicoblack List.txt から NicoVideo_NGID.txt に変更 070714 最後のコメントが消されると、「コメント取得中のため、処理が中断されました。」になり、LogListが真っ白になるのを修正 070513 mail, name, user_id に > が含まれていた場合動作しないのを修正
[Blocklists] List.NicoVideo_NGID = "..\Lists\NicoVideo_NGID.txt"
参考リスト(ご自由に追記してください)?
コメントに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" 可也馬鹿っぽいフィルタになってるけど、グローバル変数乱用はややこしい事になるのでやめた&$SET,$TST併用時のバグなどを回避してたらこうなった…
#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"
動画ページでリストで指定した文字列を含むタグを非表示にします。
リストの記述法は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>"
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"
従来の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 = "*"
リンクを押したときに検索バーの内容を
# 検索バーの内容
マッチ用の文字列
の形式でリストに追加してページをリロードする
動画ページでリンクを押した場合は
# 動画タイトル
動画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と同様です。チャンネルは「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 にする
動作していないため誰か修正お願いします。
元ソースはコメントアウトしてあります。
[Patterns] Name = "NicoVideo: Header Data Right Disp [080725]" Active = TRUE Multi = TRUE URL = "(www|tw).nicovideo.jp/((^?)|\?g=|my(^?)|user/)$TYPE(htm)" Limit = 128 Match = "((<td\swidth=$AV(320)>)\0|(<div\s[^>]++class=$AV(content_right)[^>]+>)\0)" "$STOP()" "$SET(9=<tbody><tr><td class="dot_1" colspan="2"><img src="http://res.nicovideo.jp/img/_.gif" alt="" height="1" width="1"></td></tr></tbody>)" Replace = "\0" "<!-- /*一列目:右上コメント[@1-1]*/ -->" "<div style="padding: 4px;" onClick="Element.toggle($('Header_Data_Right_Disp'));">" "<div style="background:#333; border-top:solid 2px #999; border-bottom:solid 2px #999; margin-bottom:4px;">" "<table width="312" height="24" border="0" cellpadding="8" cellspacing="0" summary="">" "<tr><td class="TXT10" style="color:#FFF;"><strong>" "<!-- /*@1-1*/ --><script stype="text/javascript">document.write($('dkb_bannertext').innerHTML);</script><!-- /*@1-1*/ -->" "</strong></td>" "</tr></table></div></div>" "<!-- /*一列目:ここまで*/ -->" "<div id="Header_Data_Right_Disp" style="display:none;">" "<!-- /*ニ列目:左上GIF[@2-1]、総投稿動画数[@2-2]、総再生数[@2-3]、総コメント数[@2-4]*/ -->" "<table width="320"><tbody><tr>" "<!-- /*@2-1*/ --><td><a href="/" onClick="location.href=location.href;return false;">" "<script type="text/javascript" src="http://res.nicovideo.jp/js/icon.js"></script><noscript><img src="http://res.nicovideo.jp/img/tpl/head/icon/nico/000.gif" alt=""></noscript>" "</a></td><!-- /*@2-1*/ -->" "<td class="TXT12" width="320">" "<!-- /*@2-2*/ --><strong>投稿動画 : " "<script stype="text/javascript">document.write($('dkb_video').innerHTML);</script>" "</strong><br><!-- /*@2-2*/ -->" "<!-- /*@2-3*/ --><strong>再生 : " "<script stype="text/javascript">document.write($('dkb_view').innerHTML);</script>" "</strong><br><!-- /*@2-3*/ -->" "<!-- /*@2-4*/ --><strong>コメント : " "<script stype="text/javascript">document.write($('dkb_comment').innerHTML);</script>" " \(<script stype="text/javascript">document.write($('dkb_res_speed').innerHTML);</script>\)" "</strong><br><!-- /*@2-4*/ -->" "</td>" "</tr></tbody></table>" "<!-- /*ニ列目:ここまで*/ -->" "<!-- /*三列目:きまぐれすぎ検索[@3-1]*/ -->" "<table width="320">\9</table>" "<!-- /*@3-1*/ -->" "<div id="over_fickle_control" style="float:right;">" "<label id="over_fickle_control_auto_label" class="TXT12">" "<input id="over_fickle_control_auto" type="checkbox" onClick="this.checked ? func_over_fickle_auto() : func_over_fickle_stop();">" "auto</label> " "<input id="over_fickle_control_next" type="button" class="submit" value="NEXT" onClick="func_over_fickle();">" "</div>" "<div id="over_fickle_openlist" style="float:left;" class="TXT12">Now Loading : |</div>" "<div id="over_fickle"></div>" "<div id="over_fickle_tag" class="TXT12"></div>" "<script type="text/javascript" charset="utf-8" src="http://local.ptron/over_fickle.js"></script>\r\n" "<script stype="text/javascript"><!--\r\n" "func_over_fickle();" "\r\n//--></script>" "<!-- /*@3-1*/ -->" "<!-- /*三列目:ここまで*/ -->" "<table style="margin-bottom: 16px; clear: both;" width="320">\9</table>" "</div>"
"(<!-- [%e2][%86][%91][%e5][%8f][%b3][%e5][%88][%97][%e2][%86][%91] -->)\0"
"<div id="Header_Data_Right_Disp" style="display:none;">"
080725 きまぐれすぎ検索(over_fickle.js)の更新等 080411 トグルにして気になった時に表示できるように変更 080405 きまぐれすぎ検索を getOwner_top にも対応するに変更 080402 仕様変更に対応、天気予報を止め、きまぐれすぎ検索を別ファイルにした 080318 きまぐれすぎ検索の微調整 080317 きまぐれすぎ検索にタグ表示を追加、きまぐれすぎ検索に履歴を追加 080316 ↓を止めてきまぐれすぎ検索にエラー削除動画スキップを追加 080315 きまぐれすぎ検索にサムネイルエラーページスキップを追加 080314 きまぐれすぎ検索の動画を登録している公開マイリスト検索を追加 080313 きまぐれすぎ検索を追加 080306 仕様変更に対応、タグを消去 080226 Matchの記述を短く変更、Replaceに各削除箇所を表記 080208 仕様変更に対応 080206 仕様変更に対応 071221 現在カテゴリを取得するように変更 071220 仕様変更に対応 071212 仕様変更に対応 071207 タグ(関連、おすすめ)を分離 071205 仕様変更にほぼ対応(タグ以外) 071127 天気予報の仕様変更に対応 071126 天気予報の追加 071121 仕様変更に対応 071118 ニコニコの仕様で表示、高速化
&ref(): File not found: "favorite ranking.txt" at page "Gallery/nicovideo/obsolete";
お気に入りの動画のみをランキングに表示します。お気に入り動画はリストまたはボタンにて切り替え可能。
Match語句
#ref(): File not found: "favorite match.txt" at page "Gallery/nicovideo/obsolete"
&ref(): File not found: "favorite ranking+.txt" at page "Gallery/nicovideo/obsolete";
[Patterns] Name = "NicoVideo: Empty nicopedia table del (100820)" Active = TRUE URL = "www.nicovideo.jp/watch/$TYPE(htm)" Limit = 256 Match = ".update\(\'*\);" Replace = ".parentNode.style.display="none";"
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を再起動してください。
&ref(): File not found: "Cacheicons.zip" at page "Gallery/nicovideo/obsolete";をダウンロードして解凍し、
中からお好みのアイコンを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 = "\@"
スマートフォン版ニコニコ動画アプリの表示に慣れてしまった方へ。このフィルタでは「コメントの開閉」をクリックすると、コメントエリアが表示・非表示を切り替えられます。デフォルトでは「非表示」状態です。
[Patterns] Name = "NicoVideo: hide Comment Panel toggle HTML5 (200617)" Version = "" Author = "" Comment = "" Active = TRUE Multi = FALSE URL = "www.nicovideo.jp/watch/*" Bounds = "" Limit = 256 Match = "(<li><a href="/my/fav/user">[^>]++</a></li>)\#$SET(#=<style> .CommentPanelContainer { visibility:hidden } </style>\n" "<script> function open_CommentP_1() { document.querySelector('.CommentPanelContainer').style.visibility = document.querySelector('.CommentPanelContainer').style.visibility=== 'hidden' ? 'visible' : 'hidden' } </script>\n" "<li><a href="javascript:void(0)" style="font-size:12px;" onclick="open_CommentP_1()">コメントの開閉</a></li>)" Replace = "\@"
NicoVideo: hide tags toggle (081004) を参考に作らせていただきました。「コメントの開閉」ボタンは、右上のメニューの「フォロー」の下にあります。
最初はボタンを2回押してください。
style.visibility なのは、style.display ではエラーが生じるため、より安全な visibility にしました。
Chrome,IE11,Firefox,Microsoft Edge で動作を確認しました。
[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日]
[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(^(^<))」と指定してください。
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 が含まれています)
タスクバーのタイトルや、タブのタイトルが見やすくなる
[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 = "\@"
&ref(): File not found: "Ranking-PlayingTimeChecker+2line (120202).txt" at page "Gallery/nicovideo/obsolete";
※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 = "\@"
勝手に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>"
&ref(): File not found: "Nico_Favorite_Ranking.js" at page "Gallery/nicovideo/obsolete";
をhtmlフォルダへ保存
※埋込み位置の変更はフィルタを修正。
※1つ上の「ランキングのレイアウトを微調整」を使うと一部の機能が制限される可能性が有ります。
※1つ下の「カテゴリリンクをセレクトボックスに置換」との併用可能
&ref(): File not found: "Ranking Category - select.png" at page "Gallery/nicovideo/obsolete";
自由にランキングページを行き来できるようにしてみた(JUMP]を押すまで移動しない)
毎時ランキングでも「総合」以外のカテゴリ選択可
&ref(): File not found: "ranking-select.txt" at page "Gallery/nicovideo/obsolete";を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で実装させてもらいました。
&ref(): File not found: "oreSort.js" at page "Gallery/nicovideo/obsolete";を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>"
ぶち込むとこんな感じになる &ref(): File not found: "select_color(081206).PNG" at page "Gallery/nicovideo/obsolete";
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フォルダに入れる
&ref(): File not found: "col236_0.png" at page "Gallery/nicovideo/obsolete";
&ref(): File not found: "col236_1.png" at page "Gallery/nicovideo/obsolete";
枠を付けたい場合は$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]より優先順位を上にして使用してください
&ref(): File not found: "search_form+.png" at page "Gallery/nicovideo/obsolete"; &ref(): File not found: "search_form+_hl.png" at page "Gallery/nicovideo/obsolete";
単独で使用すると左側の画像みたいな感じに、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フォルダに入れる(※解凍してできたフォルダは含まない)
&ref(): File not found: "search_form+.zip" at page "Gallery/nicovideo/obsolete"; (101104)
&ref(): File not found: "search_form+.txt" at page "Gallery/nicovideo/obsolete"; (101104) ※単独で使用する場合に必要
&ref(): File not found: "search_form+_hl.txt" at page "Gallery/nicovideo/obsolete"; (101107) ※Nico:Headerと併用する場合に必要
&ref(): File not found: "my3.js" at page "Gallery/nicovideo/obsolete"; (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 = "\@"
&ref(): File not found: "cs.png" at page "Gallery/nicovideo/obsolete";
[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 = "\@"
&ref(): File not found: "submit.png" at page "Gallery/nicovideo/obsolete";をhtmlフォルダに入れてください。
導入するとセレクトボックスの隣に新たなセレクトボックスが追加されます。そのボックス内からoreを選んで下さい。再生時間順にソートされます。
ページが切り替わってもソートは維持されます。解除したい場合は---を選んで解除を行って下さい。
[HTTP headers] In = FALSE Out = TRUE Key = "URL: ore-sort2" Match = "(http://www.nicovideo.jp/(tag|search)/*)\1\?ore" Replace = "$SET(zxcM=1)$RDIR(\1)"
[Patterns] Name = "New HTML ore-sort" Active = TRUE Multi = TRUE URL = "www.nicovideo.jp/(tag|search)" Limit = 32767 Match = "(<html>)\2($TST(zxcM=1)|$STOP())" "|" "($NEST(<td width="312">,*<strong>" "((^(^[0-9]+{3}))(?)\1$SET(zxcA=\1)|$SET(zxcA=0))" "((^(^[0-9]+{2}))(?)\1$SET(zxcB=\1)|$SET(zxcB=0))" "((^(^[0-9]+{1}))(?)\1$SET(zxcC=\1))[%e5][%88][%86]" "((^(^[0-9]+{2}))(?)\1$SET(zxcD=\1)|$SET(zxcD=0))" "((^(^[0-9]+{1}))(?)\1$SET(zxcE=\1))[%e7][%a7][%92]" "</strong>*,</td>))\0$SET(zxcV=$GET(zxcV)$GET(zxcA)$GET(zxcB)$GET(zxcC)$GET(zxcD)$GET(zxcE)\0)" "( </tr><tr valign="top">|)|( </tr></table> <div class="mb16p4")\2" "($SET(zxcQ=1)|$SET(zxcQ=2)|$SET(zxcQ=3)|$SET(zxcQ=4)|$SET(zxcQ=5))" "$TST(zxcV=(($SET(zxcT=9)|$SET(zxcT=8)|$SET(zxcT=7)|$SET(zxcT=6)|$SET(zxcT=5)|$SET(zxcT=4)|$SET(zxcT=3)|$SET(zxcT=2)|$SET(zxcT=1)|$SET(zxcT=0)))" "((($TST(zxcQ=1)[0-9]+{4}|$TST(zxcQ=2)[0-9]+{3}|$TST(zxcQ=3)[0-9]+{2}|$TST(zxcQ=4)[0-9]|$TST(zxcQ=5))" "((^$TST(zxcT))?$SET(zxcW=0)|$TST(zxcT)$SET(zxcW=1))[0-9]+" "$NEST(<td width="312">,</td>))\3($TST(zxcW=0|1$SET(zxcP=$GET(zxcP)\3))))+(^?)?|" "([0-9]+{5}$NEST(<td width="312">,</td>))+$SET(zxcV=$GET(zxcP))$SET(zxcP=)(^$TST(zxcQ=1))(^$TST(zxcQ=2))(^$TST(zxcQ=3))(^$TST(zxcQ=4)))" "$TST(zxcV=(([0-9]+{5}($NEST(<td width="312">,</td>))\1)" "($TST(zxcR=rrr)$SET(zxcS=$GET(zxcS)</tr><tr valign="top">)$SET(zxcR=r)|$SET(zxcR=$GET(zxcR)r))" "$SET(zxcS=$GET(zxcS)\1))+)$STOP()" Replace = "$GET(zxcS)\2" Name = "New HTML filter5ore-sort" Active = TRUE URL = "www.nicovideo.jp/(tag|search)" Limit = 256 Match = "((<option value="http://www.nicovideo.jp/(tag|search)/[^?"]+(\?|\&|sort=[fmnrv]|order=a)+)\1" "("\sselected|">[^<]+</option>\n)\3" "($TST(zxcM=1)$SET(4=?ore)|)" "$SET(0=\1\4\3))" "|" "((<td( class="TXT12"|)>[%e3][%81][%a7][%e4][%b8][%a6][%e3][%81][%b9][%e3][%81][%a6][%e3][%81][%84][%e3][%81][%be][%e3][%81][%99]</td>)\1" "$URL((http://www.nicovideo.jp/(tag|search)?+)\3)" "$SET(2=<td><select name="sort" onChange="jumpMENU('parent',this,0)" class="TXT12">\n" "<option value="\3">---</option>\n" "<option value="\3?ore"\4>ore</option>\n" "</select></td>)" "($TST(zxcM=1)$SET(4= selected)|)" "$SET(0=\2\1))" "|" "((<a href="http://www.nicovideo.jp/(tag|search)/[^"]+)\1(" class="pagelink_off">|">)\3" "($TST(zxcM=1)$SET(4=?ore)|)" "$SET(0=\1\4\3))" Replace = "\0"
&ref(): File not found: "commentrate.jpg" at page "Gallery/nicovideo/obsolete";
動画一覧などを見ると、「再生: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>"
[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 = "\@"
・&ref(): File not found: "nico_header1205.zip" at page "Gallery/nicovideo/obsolete";(120502) を保存、解凍してオミトロンのhtmlフォルダの下にnico_header1205フォルダを置いてください。
・サブメニューはフィルタのMatch4行目のonの値がclickならクリック時に、mouseoverならマウスカーソルが乗った時に開きます。
・フィルタのMatch最後の行は原宿版の動画ペーシでメニューが追従状態の時にメニューをプレイヤーより手前に表示させるためのものですが、
プレイヤーの挙動がおかしくなるようだったらこの行は消しておいてください。
[Patterns] Name = "Nico: Header (120502)" Active = TRUE Multi = TRUE URL = "$TYPE(htm)www.nicovideo.jp/" Limit = 8192 Match = "var\sq=$AV(\0)$SET(keyword=\0)\s" "|<link\s[^>]++href=$AV(http://*/(siteHeader|nicolib-CommonNotificationHeader).css*)[^>]+>\s+" "|<script\s[^>]++src=$AV(http://*/(siteHeader|nicolib-CommonNotificationHeader).js*)[^>]+></script>\s+" "|$NEST(<div,\sid="siteHeader">$SET(on=click)" "(*<a\s[^>]++(href="https://secure.nicovideo.jp/secure/login_form")\0" "$SET(login=<a class="gnia" style="color:red;" \0>ログイン</a>)|" "$SET(login=<span class="gnis">マイページ▼</span>)" ")*,</div>)$SET(#=" "<link rel="stylesheet" type="text/css" href="http://local.ptron/nico_header1205/header.css">\n" "<script type="text/javascript" src="http://local.ptron/nico_header1205/header.js"></script>\n" "<div id="siteHeader" >\n<!--$FILE(../html/nico_header1205/header.txt)-->\n</div>)" "|$NEST(<ul,\sclass="lsn\ssnv\ssnv-my"$TST(login=<a*)*,</ul>)" "|$NEST(<div,\sid=$AV(zero_lead|header|PAGEHEADER)*,</div>)" "|\$GET\((keyword$SET(#=$GET(keyword))|on$SET(#=$GET(on))|login$SET(#=$GET(login)))\)" "|(^(^if\s\(so.write\(\"flvplayer_container\"\)))$STOP()$URL(*/watch/)$SET(#=so.addParam("wmode", "opaque");\n\t)" Replace = "\@"
&ref(): File not found: "header_light_hrjk.png" at page "Gallery/nicovideo/obsolete";
[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フォルダに入れる
&ref(): File not found: "header_light_hrjk.zip" at page "Gallery/nicovideo/obsolete"; (110707) ※解凍後のフォルダは含まない
&ref(): File not found: "search_form+_hrjk.zip" at page "Gallery/nicovideo/obsolete"; (110612) ※解凍後の”search_form+”フォルダごと使用
&ref(): File not found: "Link_List.txt" at page "Gallery/nicovideo/obsolete"; (110612)
&ref(): File not found: "top_bar_link_hl.txt" at page "Gallery/nicovideo/obsolete"; (110612)
&ref(): File not found: "top_bar_user_menu_hl.txt" at page "Gallery/nicovideo/obsolete"; (110612)
&ref(): File not found: "header_rank_link+.txt" at page "Gallery/nicovideo/obsolete"; (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フォルダに入れる
&ref(): File not found: "top_bar_link+.txt" at page "Gallery/nicovideo/obsolete"; (101101)
&ref(): File not found: "top_bar_user_menu.txt" at page "Gallery/nicovideo/obsolete"; (101101)
&ref(): File not found: "top_bar_link+_hrjk.txt" at page "Gallery/nicovideo/obsolete"; (101103) ※(9)固定の場合は不必要
&ref(): File not found: "top_bar_user_menu_hrjk.txt" at page "Gallery/nicovideo/obsolete"; (101103) ※(9)固定の場合は不必要
&ref(): File not found: "header_rank_link+.png" at page "Gallery/nicovideo/obsolete";
[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フォルダに入れる
&ref(): File not found: "header_rank_link+.txt" at page "Gallery/nicovideo/obsolete"; (101101)
&ref(): File not found: "bg_b_a80.png" at page "Gallery/nicovideo/obsolete"; (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 = "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、マイページ、総合ランキングのフッタ ## ヘッダ左の広告(極小) ## ヘッダ右の広告 ## 右部広告(大) ## 右部広告(小) ## 下部広告 ## 動画ページのタグの横の大百科記事なし時の画像 ## 動画ページのプレイヤーの使い方周辺 ## 動画ページのプレイヤー右下のアイコンメニュー ## 動画ページの市場上の広告など ## 動画ページのフッタ上の広告 ## マイリストのブログパーツ ## フッタ ## 募金募集
※使わない行の削除などでマッチの一番上の行が変わった場合、その行の先頭の"|"を必ず消してください
フィルタの編集で各自必要な物を追加したり入れ替えてください
※個別に更新されるのですべてが正常動作するとは限りません
## ヘッダバーのユーザー名の前の”一般会員”(プレミアム会員の場合どうなるかはわかりません) |(<a onmouseover="showOBJ\(\'headmenu_g2\'\);[^>]+>)\#\w ## ヘッダバーを除いた下部全部 |$NEST(<table,(\swidth="984"[^>]++cellpadding=")\04("[^>]++clear:both;">)\1*,</table>)$SET(#=<table\00\1</table>) ## 動画ページの大百科の記事 |$NEST(<table,(\swidth=$AV(976)[^>]++)\0(">*id=$AV(nicopedia_video_des)*)\1,</table>)$SET(#=<table\0 display:none;\1</table>) ## 動画ページの大百科の記事(記事がない時だけ) |$NEST(<table$URL(*/watch/),(\swidth="976"[^>]++)\0">(*.update\(summary\);)\1[^;]+;\2,</table>) $SET(#=<table\0 display:none;" id="Nicopedia">\1$("Nicopedia").show();\2</table>)
詳細情報・メニュー表示切替ボタン | |$NEST(<a,\shref=$AV(#)\sonclick=$AV(showOBJ*)(^[^>]++style)*,</a>) |
詳細情報・メニュー表示切替ボタンとリンク | |$NEST(<a,\shref=$AV(#)\sonclick=$AV(showOBJ*)*,</a>) |
この動画は、~ | |$NEST(<p,\sclass=$AV(font12)>*id=$AV(nicommons)*,</p>)$URL(*watch/) |
この動画は、~(ch・コミュ未所属動画のみ) | |$NEST(<p,\sclass=$AV(font12)>*<a\shref=$AV(*post*)*,</p>)$URL(*watch/) |
カテゴリ~登録マイリストを確認 | |$NEST(<p,\sclass=$AV(font12)\sstyle=$AV(color:#CCC; margin-top:2px;)>*openlist*,</p>) |
"登録タグ"画像 | |$NEST(<td$URL(*/watch/),*/watch/mid_tag.png*,</td>) |
タグ横の"カテゴリ"画像 | |<img src="![]() |
タグ横の大百科画像 | |$NEST(<a,\shref=$AV(#{link})*$AV(*dic_o(n|ff).gif)>,</a>) |
ニコニ広告で宣伝するボタン | |<td>[^\r\n]++$AV(http://res.nimg.jp/img/watch/btn_user_uad.png)[^\r\n]++</td> |
マイリスト登録ボタン | |$NEST(<td,><a\shref=$AV(/mylist_add/video/*)*,</td>) |
とりあえずマイリスト登録ボタン | |$NEST(<td,><a\s[^>]++id=$AV(BTN_add_deflist)*,</td>) |
ニコニコ市場 | |$NEST(<div,\sstyle=$AV(padding:4px;)>\s<p><img\s[^>]++ichiba_frm_top*,</div>) |
下部動画情報 | |$NEST(<div,\sclass=$AV(mb16p4)>\s<[^>]+>\s<p\sclass=$AV(font10)*,</div>) |
上部アニメチャンネル等の広告 | |$NEST(<div,\sid=$AV(watch_channel_ad)\sstyle=$AV(*padding:4px;)>*,</div>) |
上部MTV公式動画の広告 | |$NEST(<div,\sstyle=$AV(*padding:4px;)>((^<!-)?)++ad.doubleclick.net/adj/mtv.*</div>) |
動画ページだけヘッダ固定を標準にする | |(>$URL(*/watch/) <body id="PAGETOP" class=")\#mode_2$SET(#=mode_1) |
「動画の説明文」アイコン | |<td[^>]+><img\ssrc=$AV(http://res.nimg.jp/img/watch/ftit_description.png)[^>]++></td> |
プレイヤーに表示される動画説明文 | |(so.addVariable\(\"thumbDescription\"[^"]+\")\#[^"]+(\")\#$URL(*/watch/) |
ヘッダバーの”右上” | |( \||)\s<a href="migiue"[^\r\n]++</a> |
ヘッダ左のアニメGIF | |$NEST(<td>,\s<!--[^>]++--><a href=$AV(related_tag/*)[^\r\n]++<!--[^>]++-->\s,</td>) |
ヘッダのニコニコ動画(9)画像 | |$NEST(<td,><a\shref=[^\r\n]++/head/logo/nine.png*,</td>) |
ヘッダの検索フォーム | |$NEST(<form, id=$AV(head_search_form)*,</form>)\s$NEST(<script,</script>) |
ヘッダバーのプレミアム会員登録 | | - <a href="/\?p=premium_top\&sec=bar"[^<]++</a> |
ヘッダバーのようこそゲストさん | |<span[^<]++</span> - (^(^<a href="https://secure.nicovideo.jp/secure/login_form")) |
マイページ→マイリストタブのBOX | |$NEST(<div,\sclass=$AV(content_312)>*,</div>) |
検索ページなどの【動画を?件表示】 | |$NEST(<a,[^>]++$AV(Cookie.set\('col',\s'(2|4)',\s1000\*60\*60\*24\*365*)*,</a>) |
フッタの"ページトップ"画像 | |<p><a\shref=$AV(JavaScript:ANCHOR\('PAGETOP'\))>[^\r\n]++\s[^\r\n]++</noscript> |
F5制限解除 | |Event.observe\(document,\s$AV(keydown)[^}]+}((^\);)?)+\); |
最新コメント吹き出し消去(Fukidashi killerを入れた場合不要) | |$NEST(<p,\sclass=$AV(vinfo_last_res(2|))[^>]+>*,</p>) |
ニコニ広告 | |$NEST(<div,\sid=$AV(nicoads)>*,</div>) |
マイリストの「動画を宣伝」ボタン | |$NEST(<form,*uad*,</form>) |
ランキングページの「動画を宣伝|ランキング推移」 | |onmouseover=$AV(showOBJ\($AV(MENU_*)\);) |
検索結果下部の静画 | |$NEST(<table,\s[^>]++summary=$AV(*seiga*)*,</table>) |
検索結果の動画の宣伝数 | |$NEST(<nobr,*vinfo_uadp*,</nobr>) |
[Patterns] Name = "NicoVideo: Kill ICHIBA [2013/10/20]" Active = TRUE URL = "www.nicovideo.jp/watch/?$TYPE(htm)" Limit = 12000 Match = "$NEST(<div, id=$AV(WATCHFOOTER)*,</div>)" Replace = "<span id="WATCHFOOTER"></span>"
上部広告、トップページ左側広告 | $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>) |
[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 = "\@"
&ref(): File not found: "ichiba_link.jpg" at page "Gallery/nicovideo/obsolete";
[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 = "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+"
&ref(): File not found: "sample0214.JPG" at page "Gallery/nicovideo/obsolete";
FireFoxで動作確認。タグにidがついていればそこの表示切替ができるようになる。切替後の状態はクッキーで保持される。
ヘッダーの右端にセレクトボックスができるのでそこから表示を切り替える。(ヘッダーをいじっている場合はどうなるか分からない)
上の画像は左からトップページ、カテゴリページ、動画ページのものでそれぞれセレクトボックス内のものが切替可能になる。
もし他に切り替えたい場所があればフィルタ①みたいにしてidとtextをつけていけばいい。
使い方
下の2つのフィルタをいれておく。
①タグにidをつけるフィルタ (リスト使用)
ソースで<!--↓コミュニティ↓-->~<!--↑コミュニティ↑-->みたいになってるところにidをつけたり、動画ページ内のタグにidをつけたりする。
&ref(): File not found: "add_id.txt" at page "Gallery/nicovideo/obsolete"; 左のファイルを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 = "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>"
&ref(): File not found: "Deleteicons.zip" at page "Gallery/nicovideo/obsolete";をダウンロードして解凍した中から好みのアイコンをひとつ選び、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" "\@"
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の一部を抜き出して作られたフィルタです)
&ref(): File not found: "RankingCut.jpg" at page "Gallery/nicovideo/obsolete";
リストに動画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)" URL = "uad-api.nicovideo.jp/" 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"
・&ref(): File not found: "NicoLive_Header.zip" at page "Gallery/nicovideo/obsolete";(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行目を消しておいてください。
・&ref(): File not found: "NicoLive_ConfigureNGword.txt" at page "Gallery/nicovideo/obsolete"; → 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 = "\@"