Last active
December 13, 2020 20:54
-
-
Save sun/712843222e94d507ef44388d2016788c to your computer and use it in GitHub Desktop.
Maximizes ARD/ZDF live TV player without entering fullscreen; allows window switching and better performance for watching e.g. football world championship in the background. Copy code into a bookmark and click the bookmark to toggle the player size on http://www.daserste.de/live/index.html and https://www.zdf.de/live-tv#/beitrag/livevideo/182260…
This file contains hidden or 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
javascript:(function () { | |
if (!document.getElementById('sun-maxplayer')) { | |
var style = document.createElement('style'); | |
style.type = 'text/css'; | |
style.id = 'sun-maxplayer'; | |
style.appendChild(document.createTextNode(' | |
/* ZDF */ | |
html .page #skip-main .b-playerbox { width: 100vw; z-index: 999999999; transform: translate3d(-341.9px, 0px, 0px); } | |
html .page .scroll-arrow { display: none; } | |
html .b-header { position: static; } | |
/* ARD */ | |
html body #content div.ardplayer, | |
html body .video-fmt-container iframe { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 999999999; width: 100vw; height: 100vh; } | |
/* #liveCon .av-playerContainer, .av-playerContainer video { width: 100vw !important; height: 100vh !important; border: 0; } | |
.wrapper, .sectionA { width: auto; margin: 0; }*/ | |
')); | |
document.head.appendChild(style); | |
style.disabled = true; | |
} | |
var toggle = document.getElementById('sun-maxplayer'); | |
toggle.disabled = !toggle.disabled; | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment