Re:JQuery plugin dynamically changes your images to placehol...
by dmethvin on Monday February 28, 2011 @10:07PM
(#2274054)
javascript: void $('img').each(function(i,img) { var $i = $(img), w = $i.width(), h = $i.height(); if ( w && h ) img.src = 'http://placekitten.com/+w+/+h;});
Re:JQuery plugin dynamically changes your images to placehol...
by wizard_2 on Monday February 28, 2011 @10:20PM
(#2274111)
syntax error, this should work;
javascript:(function(){$('img').each(function(i,img){var $i = $(img), w = $i.width(), h = $i.height(); if ( w && h ){img.src = 'http://placekitten.com/'+w+'/'+h;}});})()
It actually turns _all_ images into kittens, but I think it's an improvement. :-)
Just sayin'...
Paste that in foxnews.com!