Skip to content

Instantly share code, notes, and snippets.

@chetan
Created September 8, 2010 02:29
Show Gist options
  • Save chetan/569516 to your computer and use it in GitHub Desktop.
Save chetan/569516 to your computer and use it in GitHub Desktop.
javascript:%20var%20x=%20$(".content").find("a").not(".thumbnail").each(function(){var%20href=$(this).attr("href");if((!$(this).hasClass("drowsapMorphed"))%20&&%20($(this).next(".drowsapMorphed").length==0)%20&&%20href%20&&%20(href.indexOf('imgur')>=0%20||%20href.indexOf('jpeg')>=0%20||%20href.indexOf('jpg')>=0%20%20||%20href.indexOf('png')>=0)){var%20ext%20=(href.indexOf('imgur')>=0%20&&%20href.indexOf('jpg')<0%20&&%20href.indexOf('png')<0)%20?%20'.jpg'%20:'';%20var%20img%20=%20$("<a%20class='drowsapMorphed'%20href='"+href+"'%20target='blank'%20style='display:block'><img%20style='display:block;max-width:780px;'%20src='"+href+%20ext+"'%20/></a>");$(this).after(img);}});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment