Skip to content

Instantly share code, notes, and snippets.

@Lewiscowles1986
Created December 17, 2015 17:44
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 Lewiscowles1986/46bd27fba500cb580f39 to your computer and use it in GitHub Desktop.
Save Lewiscowles1986/46bd27fba500cb580f39 to your computer and use it in GitHub Desktop.
better sorting for imgur galleries
// Drop this directly into the console
jQuery('.sortable-image img, .sortable-image').css({width:'auto',height:'auto'})
jQuery('.sortable-image img').each( function(e,elem) {
var fixedImg = jQuery(this).attr('src').replace('s.png','.png');
jQuery(this).attr( 'src', fixedImg );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment