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;});
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;}});})()
Comments
Now, a bookmarklet would be really nice!
Just sayin'...
Here, this one will work without requiring jQuery:
Thanks. Perfect match with http://ft.com and http://nytimes.com. Gives me a good laugh :)
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!
syntax error, this should work;
http://www.reddit.com/r/politics/comments/fus7q/the_only_way...
Hah!