Skip to content

Instantly share code, notes, and snippets.

@swdyh
Created September 21, 2008 11:58
Show Gist options
  • Save swdyh/11863 to your computer and use it in GitHub Desktop.
Save swdyh/11863 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name fashionsnap enlarge images
// @namespace http://userscripts.org/users/25793
// @include http://www.fashionsnap.com/streetsnap/*
// ==/UserScript==
Array.forEach(document.images, function(i) {
var pa = i.parentNode
if (pa.rel && pa.rel.match(/^lightbox/)) {
i.src = pa.href
i.style.width = 'auto'
i.style.height = 'auto'
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment