Skip to content

Instantly share code, notes, and snippets.

@sun
Last active December 13, 2020 20:54
Show Gist options
  • Select an option

  • Save sun/712843222e94d507ef44388d2016788c to your computer and use it in GitHub Desktop.

Select an option

Save sun/712843222e94d507ef44388d2016788c to your computer and use it in GitHub Desktop.

Revisions

  1. sun revised this gist Dec 13, 2020. 1 changed file with 12 additions and 1 deletion.
    13 changes: 12 additions & 1 deletion ard-zdf-live-tv-stream-maximize-bookmarklet.js
    Original file line number Diff line number Diff line change
    @@ -3,8 +3,19 @@ javascript:(function () {
    var style = document.createElement('style');
    style.type = 'text/css';
    style.id = 'sun-maxplayer';
    style.appendChild(document.createTextNode('/* ZDF */ html .b-live-tv .m-player-started { width: 100vw; z-index: 999999999; transform: translate3d(-330px, 0px, 0px); } html .scroll-arrow { display: none; } html .b-header { position: static; } /* ARD */ #liveCon .av-playerContainer, .av-playerContainer video { width: 100vw !important; height: 100vh !important; border: 0; } .wrapper, .sectionA { width: auto; margin: 0; }'));
    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;
  2. sun revised this gist Jun 24, 2018. 2 changed files with 11 additions and 11 deletions.
    11 changes: 11 additions & 0 deletions ard-zdf-live-tv-stream-maximize-bookmarklet.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    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 .b-live-tv .m-player-started { width: 100vw; z-index: 999999999; transform: translate3d(-330px, 0px, 0px); } html .scroll-arrow { display: none; } html .b-header { position: static; } /* ARD */ #liveCon .av-playerContainer, .av-playerContainer video { width: 100vw !important; height: 100vh !important; border: 0; } .wrapper, .sectionA { width: auto; margin: 0; }'));
    document.head.appendChild(style);
    }
    var toggle = document.getElementById('sun-maxplayer');
    toggle.disabled = !toggle.disabled;
    }());
    11 changes: 0 additions & 11 deletions zdf-live-tv-maximize-bookmarklet.js
    Original file line number Diff line number Diff line change
    @@ -1,11 +0,0 @@
    javascript:(function () {
    if (!document.getElementById('sun-maxplayer')) {
    var style = document.createElement('style');
    style.type = 'text/css';
    style.id = 'sun-maxplayer';
    style.appendChild(document.createTextNode('html .b-live-tv .m-player-started { width: 100vw; z-index: 999999999; transform: translate3d(-330px, 0px, 0px); } html .scroll-arrow { display: none; } html .b-header { position: static; }'));
    document.head.appendChild(style);
    }
    var toggle = document.getElementById('sun-maxplayer');
    toggle.disabled = !toggle.disabled;
    }());
  3. sun revised this gist Jun 23, 2018. No changes.
  4. sun revised this gist Jun 23, 2018. No changes.
  5. sun revised this gist Jun 23, 2018. No changes.
  6. sun created this gist Jun 22, 2018.
    11 changes: 11 additions & 0 deletions zdf-live-tv-maximize-bookmarklet.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    javascript:(function () {
    if (!document.getElementById('sun-maxplayer')) {
    var style = document.createElement('style');
    style.type = 'text/css';
    style.id = 'sun-maxplayer';
    style.appendChild(document.createTextNode('html .b-live-tv .m-player-started { width: 100vw; z-index: 999999999; transform: translate3d(-330px, 0px, 0px); } html .scroll-arrow { display: none; } html .b-header { position: static; }'));
    document.head.appendChild(style);
    }
    var toggle = document.getElementById('sun-maxplayer');
    toggle.disabled = !toggle.disabled;
    }());