5 ms·
JQuery plugin dynamically changes your images to placeholder kittens
- gregschlom 16y agoNow, 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 :)
- joshes 16y agoWell that was a quick turnaround.
- armandososa 16y agoI'd want an extension that does exactly this, but only for ads.
- britta 16y agoCheck out Add-Art: http://add-art.org/ http://add-art.org/ - "a free FireFox add-on which replaces advertising on websites with curated art images."
- goo 16y agoHere's a chrome extension that lets you toggle kittenification on or off. (It's not blocking ads yet-- I'll get that done eventually) https://chrome.google.com/webstore/detail/fgppoekgokpnoigpcimgchnkafnmobhp# https://chrome.google.com/webstore/detail/fgppoekgokpnoigpci... code: https://github.com/gk777/Kittens-Everywhere https://github.com/gk777/Kittens-Everywhere
- johnfn 16y agoDone. http://stanford.edu/~grantm/cats.html http://stanford.edu/~grantm/cats.html It actually turns _all_ images into kittens, but I think it's an improvement. :-)
- EgeBamyasi 16y agoThat made my day.
- joshmanders 16y agoI love it. I kittify every site I visit now.
- zacharypinter 16y agoHah! The bookmarklet works perfectly on engadget.com.
- wiseleo 16y agoOh this is good :)