Created
October 7, 2011 17:31
-
-
Save serian/1270874 to your computer and use it in GitHub Desktop.
tombloo NicoNicoDouga Firefox
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tombloo.Service.extractors.register([ | |
{ | |
name : 'Video - Nico Nico Douga', | |
ICON : models.Nicovideo.ICON, | |
check : function(ctx){ | |
return ctx.href.match('^http://www\.nicovideo\.jp/watch/'); | |
}, | |
extract : function(ctx){ | |
return { | |
type : 'video', | |
item : ctx.title, | |
itemUrl : ctx.href, | |
body : $x("//textarea[@id='paste_code_player']/text()", ctx.window.document) | |
} | |
} | |
} | |
],'Video'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment