Skip to content

Instantly share code, notes, and snippets.

@absyah
Forked from danro/remove-video.js
Last active October 20, 2017 15:50
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 absyah/bb003bbccfb7b86706f6adde62f867e3 to your computer and use it in GitHub Desktop.
Save absyah/bb003bbccfb7b86706f6adde62f867e3 to your computer and use it in GitHub Desktop.
Remove HTML5 video and clear src attribute to prevent leaks.
$('video source').each(function(num,val){
$(this).attr('src', 'newSourceValue')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment