Posted By

stevecopley on 04/12/10


Tagged

browser images bookmarklet reddit


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

dumbo


Show all images in Reddit thread


 / Published in: JavaScript
 

  1. javascript:%20var%20x=%20$(".content").find("a").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);}});

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: Vordreller on April 12, 2010

Is this supposed to be a GreaseMonkey script?

You need to login to post a comment.