Skip to content

Instantly share code, notes, and snippets.

@kurumigi
Created June 11, 2009 08:16
Show Gist options
  • Save kurumigi/127778 to your computer and use it in GitHub Desktop.
Save kurumigi/127778 to your computer and use it in GitHub Desktop.
[searchDef of "Greased Lightbox"]amazon
// amazon
{
name : 'amazon',
includeRegExp : /^http:\/\/www\.amazon\.(?:co(?:m|\.jp|\.uk)|fr|de|ca)\//i,
linkRegExp : /^http:\/\/www\.amazon\.(?:co(?:m|\.jp|\.uk)|fr|de|ca)\/gp\/product\/images\/(\w{10})\/.*ref=dp_(?:otherviews|image).*$/i,
replaceString : 'http://ec2.images-amazon.com/images/P/$1.01._SCLZZZZZZZ_.jpg',
showFunction : function(event) { greasedLightbox.showFrom(event, 'amazon'); return false; }
}, // amazon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment