Last active
May 4, 2018 23:39
-
-
Save polerin/0a646cfe955d74b76528909f040c4d36 to your computer and use it in GitHub Desktop.
Cleeng player resize
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
// Copy the below and use it to create a bookmarklet, or paste it into the developer console for the page. | |
// This should be used after the video is playing. | |
(function() { | |
var playerFrame = document.getElementsByTagName("iframe")[0]; | |
console.log("changing size of iframe:", playerFrame); | |
playerFrame.style.width = "100%"; | |
playerFrame.style.height = "100%"; | |
console.log("changing max width of container"); | |
var container = document.getElementById('main-container'); | |
container.style.maxWidth = "100%"; | |
console.log("hiding footer"); | |
var footer = document.getElementById("player-footer"); | |
footer.style.display = "none"; | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment