News for hackers. Stuff that matters.
Re:JQuery plugin dynamically changes your images to placehol... by gregschlom on Monday February 28, 2011 @10:01PM (#2274042)
Now, a bookmarklet would be really nice!

Just sayin'...

Re:JQuery plugin dynamically changes your images to placehol... by sisk on Monday February 28, 2011 @11:22PM (#2274265)
Here, this one will work without requiring jQuery:

  javascript:(function(){var a=document.getElementsByTagName('img'),i=a.length;while(b=a[--i]){b.setAttribute('src','http://placekitten.com/'+b.width+'/'+b.height);}})();
Re:JQuery plugin dynamically changes your images to placehol... by gregschlom on Tuesday March 01, 2011 @10:02AM (#2275608)
Thanks. Perfect match with http://ft.com and http://nytimes.com. Gives me a good laugh :)
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;});

Paste that in foxnews.com!

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;}});})()
Re:JQuery plugin dynamically changes your images to placehol... by eclark on Monday February 28, 2011 @10:21PM (#2274114)
Re:JQuery plugin dynamically changes your images to placehol... by lsemel on Monday February 28, 2011 @10:14PM (#2274082)
Hah!