Skip to content

Instantly share code, notes, and snippets.

@iamcanadian1973
Last active January 9, 2016 00:45
Show Gist options
  • Save iamcanadian1973/cb6c87f6809b23c1cd58 to your computer and use it in GitHub Desktop.
Save iamcanadian1973/cb6c87f6809b23c1cd58 to your computer and use it in GitHub Desktop.
Remove Youtube video toolbar and branding
$('iframe[src*="youtube.com"]').each(function() {
var url = $(this).attr("src");
var char = "?";
if(url.indexOf("?") != -1)
char = "&";
$(this).attr("src",url+char+"modestbranding=1&wmode=transparent&showinfo=0&rel=0&autohide=1");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment