Created
July 11, 2018 13:28
-
-
Save Shilo/8f010b73ffbcb808d13228075e18e0c0 to your computer and use it in GitHub Desktop.
Quiettube7.com fullscreen injection to put the video in fullscreen.
This file contains 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
(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 = '­<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