Skip to content

Instantly share code, notes, and snippets.

@davidsharp
Last active May 19, 2017 08:46
Show Gist options
  • Select an option

  • Save davidsharp/8922a673cec07b0fc0e3df5298bd3533 to your computer and use it in GitHub Desktop.

Select an option

Save davidsharp/8922a673cec07b0fc0e3df5298bd3533 to your computer and use it in GitHub Desktop.
Quick console drop in for Youtube videos in React Debugger
// Is this _even_ gist-worthy? (Not yet, is the answer. Not yet.)
window.youtubeMe = function(videoID){
document.querySelector(".content")
.insertAdjacentHTML('beforebegin',
'<iframe width="100%" height="100%" src="https://www.youtube.com/embed/'+videoID+'" frameborder="0" allowfullscreen></iframe>'
);
}
document.querySelector("body").style.color="white"
document.querySelector("body").style['background-color']="black"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment