Skip to content

Instantly share code, notes, and snippets.

@Shilo
Created July 11, 2018 13:28
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 Shilo/8f010b73ffbcb808d13228075e18e0c0 to your computer and use it in GitHub Desktop.
Save Shilo/8f010b73ffbcb808d13228075e18e0c0 to your computer and use it in GitHub Desktop.
Quiettube7.com fullscreen injection to put the video in fullscreen.
(function() {
var css = `
html, body {
height: 100%;
}
body {
overflow: hidden;
}
#video {
position: fixed;
top: 0;
left: 0;
margin: 0;
}
#video, #video > object {
width: 100%;
height: 100%;
}
`;
var cssDiv = document.createElement('div'); cssDiv.innerHTML = '&shy;<style>' + css + '</style>'; document.body.appendChild(cssDiv.childNodes[1]);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment