Skip to content

Instantly share code, notes, and snippets.

@eggman
Created March 1, 2010 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eggman/318375 to your computer and use it in GitHub Desktop.
Save eggman/318375 to your computer and use it in GitHub Desktop.
(function() {
Tombloo.Service.extractors.register({
name : 'Photo - Ameba blog',
ICON : 'chrome://tombloo/skin/photo.png',
check : function(ctx){
if(!ctx.onLink)
return false;
return ( ctx.href.indexOf('//ameblo.jp/') > -1 && ctx.href.indexOf('/entry-') > -1);
},
extract : function(ctx){
ctx.target.src = ctx.target.src.replace(/(\/t[0-9]+_)/, "/o");
return Tombloo.Service.extractors['Photo'].extract(ctx);
},
}, 'Photo', false);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment