Created
December 17, 2015 17:44
-
-
Save Lewiscowles1986/46bd27fba500cb580f39 to your computer and use it in GitHub Desktop.
better sorting for imgur galleries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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