Skip to content

Instantly share code, notes, and snippets.

@dudewheresmycode
Last active November 21, 2018 00:04
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 dudewheresmycode/f3b7519e7e17ac9e8408ecec98f751df to your computer and use it in GitHub Desktop.
Save dudewheresmycode/f3b7519e7e17ac9e8408ecec98f751df to your computer and use it in GitHub Desktop.
This js code should expand the player to the width/height of the browser window.
window._fs__hbo_timeout;
window._fs__hbo = function(){
document.querySelector("#ifp").parentNode.setAttribute("style", "position:fixed;top:0px;left:0px;width:100vw;height:100vh;background-color:#000;z-index:2147483648;");
document.querySelector("#ifp").parentNode.setAttribute("id", "flvideo");
document.querySelector("#ifp").parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.style.top = "0px";
document.querySelectorAll(".default").forEach(function(e){
var style = window.getComputedStyle(e);
if(e.getAttribute("id") != "flvideo" && style.position == "fixed"){ e.style.opacity = 0; e.style.zIndex = 1; }
});
}
window._fs__hbo();
window.addEventListener('resize', function(){
clearTimeout(window._fs__hbo_timeout);
window._fs__hbo_timeout = setTimeout(window._fs__hbo, 2000);
});

HBO GO Fullscreen

When watching on desktop at play.hbogo.com. This js code should expand the player to the width/height of the browser window.

Open Developer Tools > Javascript Console, paste the javascript and press enter.

window._fs__hbo_timeout;window._fs__hbo=function(){document.querySelector("#ifp").parentNode.setAttribute("style","position:fixed;top:0px;left:0px;width:100vw;height:100vh;background-color:#000;z-index:2147483648;");document.querySelector("#ifp").parentNode.setAttribute("id","flvideo");document.querySelector("#ifp").parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.style.top="0px";document.querySelectorAll(".default").forEach(function(e){var style=window.getComputedStyle(e);if(e.getAttribute("id")!="flvideo"&&style.position=="fixed"){e.style.opacity=0;e.style.zIndex=1}})};window._fs__hbo();window.addEventListener("resize",function(){clearTimeout(window._fs__hbo_timeout);window._fs__hbo_timeout=setTimeout(window._fs__hbo,2e3)});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment