Skip to content

Instantly share code, notes, and snippets.

@abdullin

abdullin/houzz.js

Created Feb 22, 2016
Embed
What would you like to do?
// 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