Last.fm 関連フィルタ Edit

http://www.last.fm/

曲名の横にビデオへのリンクと歌詞へのリンクを追加する [2009-07-19] Edit

add-movie-and-lyric-link.png

  1. http://abc.s65.xrea.com/tools/jump_ce.htmecl_new.js を ./html/ に保存
  2. 以下のフィルタを導入
    [Patterns]
    Name = "Lastfm: add movie & lyric link (1/3) [2009-07-17]"
    Active = TRUE
    URL = "www.lastfm.jp/(music|user)/?$TYPE(htm)"
    Limit = 512
    Match = "$NEST(<a\s,href=$AV((^*/\+(albums|charts|events|groups|images|journal|listeners|news|shoutbox|similar|tags|tracks|videos|wiki)([/?]|(^?)))"
    "/music/"
    "([^/]+)\0/"
    "[^/]+/"
    "\1"
    ")"
    "(\salbum=$AV(*)|)"
    "(\sclass=$AV(primary)|)"
    ">(^ <img)*,</a>)"
    "($URL(http://www.lastfm.jp/music)$SET(8= &nbsp; \9)"
    "|$URL(http://www.lastfm.jp/user)$SET(7=\9 &nbsp; ))&&\9"
    Replace = "\7[<a target="_blank" href="http://video.google.com/videosearch?oe=UTF-8&q=%22\0%22+%22\1%22">Video</a>]"
    " [<a target="_blank" href="http://local.ptron/jump_ce.htm#utf8;sjis;www.utamap.com/searchkasi.php?searchname=title&word=\1">Lyric</a>]\8"
    
    Name = "Lastfm: add movie & lyric link (2/3) [2009-07-19]"
    Active = TRUE
    URL = "www.lastfm.jp/module\?*name=charts"
    Limit = 512
    Match = "$NEST(<a\s,href="
    "("
    "\\"*\\"&&(^*\\/\+(albums|charts|events|groups|images|journal|listeners|news|shoutbox|similar|tags|tracks|videos|wiki)([\\/?]|(^?)))"
    "\\"\\/music\\/"
    "([^\\/]+)\0\\/"
    "[^\\/]+\\/"
    "\1"
    "\\")"
    "(\salbum=\\"*\\"|)"
    "(\sclass=\\"primary\\"|)"
    ">(^ <img)*,<\\/a>)"
    "($OHDR(Referer: http://www.lastfm.jp/music/)$SET(8= &nbsp; \9)"
    "|$OHDR(Referer: http://www.lastfm.jp/user/)$SET(7=\9 &nbsp; ))&&\9"
    Replace = "\7[<a target=\\"_blank\\" href=\\"http:\\/\\/video.google.com\\/videosearch?oe=UTF-8&q=%22\0%22+%22\1%22\\">Video<\\/a>]"
    " [<a target=\\"_blank\\" href=\\"http:\\/\\/local.ptron\\/jump_ce.htm#utf8;sjis;www.utamap.com\\/searchkasi.php?searchname=title&word=\1\\">Lyric<\\/a>]\8"
    
    [HTTP headers]
    In = TRUE
    Out = FALSE
    Key = "Content-Type: Lastfm: add movie & lyric link (3/3) [2009-07-17] (in)"
    URL = "www.lastfm.jp/module\?*name=charts$FILTER(true)"
    Match = "*"
    Replace = "text/css; fake"

歌詞検索は utamap を使用しているので、邦楽以外はあまり見つかりません。気に入らない場合 sing365 など適当なものに置き換えてください。

関連


添付ファイル: fileadd-movie-and-lyric-link.png 36件 [詳細]

複製名前変更