Skip to content

Instantly share code, notes, and snippets.

@abdullin
Created February 22, 2016 10:48
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 abdullin/15c1f595a8b37e992c42 to your computer and use it in GitHub Desktop.
Save abdullin/15c1f595a8b37e992c42 to your computer and use it in GitHub Desktop.
// Bookmarklet for making Houzz useful
javascript:$("img.viewImage, img.currentImage, img.space, img[id^=galleryImg], img[class^=browseListImage], .gallery-photo img").each(function() { var newSrc = this.src.replace(/[fs]images\/(\d+).*/, 'simages/$1_0_9-.jpg').replace(/_\d-/,'_16-'); $(this).parents("div.browseListBody").before("<a href='"+newSrc+"'><img src='"+newSrc+"' width=400></a>") });$("div.content-row").remove();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment