4 ms·
Now, a bookmarklet would be really nice! Just sayin'...
by gregschlom 16y ago
Now, a bookmarklet would be really nice!
Just sayin'...
- dmethvin 16y agojavascript: 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;} http://placekitten.com/+w+/+h;}); Paste that in foxnews.com!
- lsemel 16y agoHah!
- deleted 16y ago[deleted]
- wizard_2 16y agosyntax 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;}});})()
- eclark 16y agohttp://www.reddit.com/r/politics/comments/fus7q/the_only_way_foxnewscom_can_be_tolerated_for_10/ http://www.reddit.com/r/politics/comments/fus7q/the_only_way...
- deleted 16y ago[deleted]
- deleted 16y ago[deleted]
- deleted 16y ago[deleted]
- deleted 16y ago[deleted]
- sisk 16y agoHere, 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);}})();
- gregschlom 16y agoThanks. Perfect match with http://ft.com http://ft.com and http://nytimes.com http://nytimes.com. Gives me a good laugh :)