Skip to content

Instantly share code, notes, and snippets.

@polerin
Last active May 4, 2018 23:39
Show Gist options
  • Save polerin/0a646cfe955d74b76528909f040c4d36 to your computer and use it in GitHub Desktop.
Save polerin/0a646cfe955d74b76528909f040c4d36 to your computer and use it in GitHub Desktop.
Cleeng player resize
// 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