Gallery/YouTube最終更新: 2014-12-01 (月) 06:28:15 (3578d) |
インデントはコメントをすべて表示したとき限定
導入
[HTTP headers] In = FALSE Out = TRUE Key = "Accept-Encoding: YouTube watch_ajax no-gzip (out) for 4.5" URL = "([^/]++.|)youtube.co(m|.jp)/watch_ajax" Match = "*" In = TRUE Out = FALSE Key = "Content-Type: YouTube watch_ajax $FILTER(true) (in) [2009-05-31]" URL = "([^/]++.|)youtube.co(m|.jp)/watch_ajax" Match = "text/xml&\0" Replace = "\0$FILTER(true)"
# Accept-Encoding: (out) を消さずに、Content-Type: (in) を text/css などに置換して、4.5の強制バイパスバグを回避する手もあるが、YouTube の JavaScript が Content-Type: (in) を確認しているようで、text/xml 以外にすると動かなくなるので、gzip で送らせないようにした。
[Patterns] Name = "YouTube: indent reply & set unique color & show negative score [2012/03/28]" Active = TRUE URL = "([^/]++.|)youtube.co(m|.jp)/(watch|comment_servlet|all_comments)" Bounds = "$NEST(<li([^>]+)\0>,</li>)" Limit = 8192 Match = "<li" "([^>]++data-score=$AV(-[0-9]+&&\8)$SET(7=<nobr style="color:#f55">\8 ☠</nobr>)|)" "*<span\s[^>]++class=$AV((*\s| )author(\s*| ))[^>]+> <a\s[^>]++href=$AV(/user/(" "(" "([0-9a-f])\#" "|g$SET(#=0)" "|h$SET(#=1)" "|i$SET(#=2)" "|j$SET(#=3)" "|k$SET(#=4)" "|l$SET(#=5)" "|m$SET(#=6)" "|n$SET(#=7)" "|o$SET(#=8)" "|p$SET(#=9)" "|q$SET(#=a)" "|r$SET(#=b)" "|s$SET(#=c)" "|t$SET(#=d)" "|u$SET(#=e)" "|v$SET(#=f)" "|?$SET(#=A)" ")+{0,6}*" "&&" "(" "(^?)$SET(#=FFF)" "|?(^?)$SET(#=AA)" "|??(^?)$SET(#=C)" "|????(^?)$SET(#=DD)" "|?????(^?)$SET(#=A)" "|*)" ")" ")" "" "(*<div\s[^>]++class=$AV(comment-(text|show-hide))[^>]+> (<[ap](\s[^>]+|)> )+@$URL(http://([^/]++.|)youtube.co(m|.jp)/(comment_servlet|all_comments))$SET(9=margin-left: 2ex)" "|)" "" "&" "<li[^>]+> (\1</div>(^(^ </li>))\2\3|\1)</li>" Replace = "<li\0 style="border-left: 5px solid #\@; \9">\1 \7 \2\3</li>"
インデントはコメントをすべて表示したとき限定
イマイチの数は title 属性で表示
導入
[Patterns] Name = "YouTube: indent reply & set unique color [2011/04/05]" Active = FALSE URL = "([^/]++.|)youtube.co(m|.jp)/(watch|comment_servlet|all_comments)" Bounds = "$NEST(<li([^>]+)\0>,\1,</li>)" Limit = 4096 Match = "<li" "([^>]++data-score=$AV(-[0-9]+|0&&\8)$SET(7= title="score: \8")|)" "[^>]++data-author=$AV(" "(" "([0-9a-f])\#" "|g$SET(#=0)" "|h$SET(#=1)" "|i$SET(#=2)" "|j$SET(#=3)" "|k$SET(#=4)" "|l$SET(#=5)" "|m$SET(#=6)" "|n$SET(#=7)" "|o$SET(#=8)" "|p$SET(#=9)" "|q$SET(#=a)" "|r$SET(#=b)" "|s$SET(#=c)" "|t$SET(#=d)" "|u$SET(#=e)" "|v$SET(#=f)" "|?$SET(#=A)" ")+{0,6}*" "&&" "(" "(^?)$SET(#=FFF)" "|?(^?)$SET(#=AA)" "|??(^?)$SET(#=C)" "|????(^?)$SET(#=DD)" "|?????(^?)$SET(#=A)" "|*)" ")" "" "(*<div\s[^>]++class=$AV(comment-(text|show-hide))[^>]+> (<[ap](\s[^>]+|)> )+@$URL(http://([^/]++.|)youtube.co(m|.jp)/(comment_servlet|all_comments))$SET(9=margin-left: 2ex)" "|)" "*" Replace = "<li\0 style="border-left: 5px solid #\@; \9"\7>\1</li>"
コメントをすべて表示したとき限定
導入
[Patterns] Name = "YouTube: indent reply [2011/04/05]" Active = FALSE URL = "([^/]++.|)youtube.co(m|.jp)/(comment_servlet|all_comments)" Bounds = "$NEST(<li([^>]+)\0>,\1,</li>)" Limit = 4096 Match = "*<div\s[^>]++class=$AV(comment-(text|show-hide))[^>]+> (<[ap](\s[^>]+|)> )+@*" Replace = "<li\0 style="margin-left: 2ex">\1</li>"
力技。動画を見ることしか興味ない人用。ログオン状態での動作は未確認。
[Patterns] Name = "YouTube: scroll right only (140301)" Active = TRUE URL = "$TYPE(htm)(jp|www).youtube.com/watch" Limit = 64 Match = "(<div\sid=$AV(player))\#$SET(#= style="position:fixed; top:50px; left:112px;")" "|(<div\sid=$AV(watch7-content))\#$SET(#= style="position:fixed; top:450px;")" "|(<div\sid=$AV(watch-discussion))\#$SET(#= style="display:none;")" "|(<div\sid=$AV(watch7-sidebar))\#$SET(#= style="margin-top:10px;")" "|(<div\sid=$AV(footer-container))\#$SET(#= style="display:none;")$STOP()" Replace = "\@"
※Adblockのフィルタ
カスをほぼ殲滅出来たadblockフィルタ 要素非表示ルール→フィルタを追加にて youtube.com##a[href="/user/HIKAKIN"] youtube.com##div[data-context-item-user="HIKAKIN"] youtube.com##a[href="/user/HikakinTV"] youtube.com##div[data-context-item-user="HikakinTV"] youtube.com##a[href="/user/HikakinGames"] youtube.com##div[data-context-item-user="HikakinGames"] youtube.com##a[href="/user/HikakinBlog"] youtube.com##div[data-context-item-user="HikakinBlog"] 検索結果にステマタグで出てくる場合は追加 youtube.com##li[data-context-item-user="HIKAKIN"] youtube.com##li[data-context-item-user="HikakinTV"] youtube.com##li[data-context-item-user="HikakinGames"] youtube.com##li[data-context-item-user="HikakinBlog"]
グリモン用 http://userscripts.org/scripts/show/176449