Kittenify Bookmarklet
Internet getting you down? Tired of reading tales of doom and disaster? Ever wanted to cheer yourself up by looking at floofy kittins? Of course you have. And now you can! With this little bookmarkelet that replaces all images on the page with pictures of kittens.
How to use?
Easy, add this link to your bookmarks: Kittenify, go to the page you want to kittenify and click Kittenify! in your bookmarks.
If adding the link doesn't work try adding this to your bookmarks manually:
javascript:(function(){ ktndata = null, fcb=function(d){ ktndata=d; var p=document.getElementsByTagName('img'); for(var i in p){ p[i].width=p[i].width; p[i].height=p[i].height; p[i].src=d.items[Math.floor(Math.random()*(d.items.length))].media.m; } }; if(!ktndata){ var jp=document.createElement('script'); jp.setAttribute('type','text/javascript'); jp.setAttribute('src','http://api.flickr.com/services/feeds/photos_public.gne?tags=kitten&tagmode=any&format=json&jsoncallback=fcb'); document.getElementsByTagName('head')[0].appendChild(jp); } else{ fcb(ktndata); } })()
Here's a sample image for you to kittenify:
Technical dullness
- This uses Flickr to look for photos tagged with "kitten".
- I've tested with IE 8, FF 3.0 and Opera 9.5 and all appears to be grand. Apparently IE6 doesn't like saving such a long bookmark but sod them.
- There's no image size checking so your kittens might be horribly misshapen but please remember that no kittens were harmed in the making of this bookmarklet.