Skip to content

Instantly share code, notes, and snippets.

@evanwalsh
Created November 5, 2010 18:16
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evanwalsh/664553 to your computer and use it in GitHub Desktop.
Save evanwalsh/664553 to your computer and use it in GitHub Desktop.
$.noConflict();
jQuery(document).ready(function($){
$('.audio').each(function(){
var match = $(this).find('script').html().match(/audio_file=(.*)\\x26/);
$(this).find('span').html('<audio src="'+match[1]+'?plead=please-dont-download-this-or-our-lawyers-wont-let-us-host-audio" controls="controls">Your browser does not support the audio element.</audio>').remove();
$(this).find('script').remove();
});
});
@scottschiller
Copy link

Just for the record, I love the URL disclaimer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment