Last active
May 19, 2017 08:46
-
-
Save davidsharp/8922a673cec07b0fc0e3df5298bd3533 to your computer and use it in GitHub Desktop.
Quick console drop in for Youtube videos in React Debugger
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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