Skip to content

Instantly share code, notes, and snippets.

@codeflows
Created March 3, 2011 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codeflows/852757 to your computer and use it in GitHub Desktop.
Save codeflows/852757 to your computer and use it in GitHub Desktop.
Kitteh bookmarklet
javascript:(function(e,a,g,h,f,c,b,d){if(!(f=e.jQuery)||g>f.fn.jquery||h(f)){c=a.createElement("script");c.type="text/javascript";c.src="http://ajax.googleapis.com/ajax/libs/jquery/"+g+"/jquery.min.js";c.onload=c.onreadystatechange=function(){if(!b&&(!(d=this.readyState)||d=="loaded"||d=="complete")){h((f=e.jQuery).noConflict(1),b=1);f(c).remove()}};a.documentElement.childNodes[0].appendChild(c)}})(window,document,"1.5.1",function($,L){$('img').each(function(){var w=$(this).width();var h=$(this).height();if(w&&h){var src='http://placekitten.com/'+w+'/'+h;$(this).attr('src',src);}});});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment