Created
November 1, 2010 11:14
-
-
Save jcsrb/658004 to your computer and use it in GitHub Desktop.
jQuery based script to prepand imagelinks in Apache Directory Listing
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
jQuery('a').filter(function() { | |
return jQuery(this).attr('href').match(/\.(jpg|png|gif|JPG)/); | |
}).prepend(function(index,html){return '<img src="'+html+'" />'}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment