Skip to content

Instantly share code, notes, and snippets.

@jcsrb
Created November 1, 2010 11:14
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 jcsrb/658004 to your computer and use it in GitHub Desktop.
Save jcsrb/658004 to your computer and use it in GitHub Desktop.
jQuery based script to prepand imagelinks in Apache Directory Listing
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