Skip to content

Instantly share code, notes, and snippets.

@serian
Created October 7, 2011 17:31
Show Gist options
  • Save serian/1270874 to your computer and use it in GitHub Desktop.
Save serian/1270874 to your computer and use it in GitHub Desktop.
tombloo NicoNicoDouga Firefox
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