Debloat your Android TV, install apps, browse and transfer files on it, all from your phone. Just 3 MB, no tracking, no root, no PC.
Landing page: play the demo in a centred modal
jesse-agent-2322317392bc611
diff --git a/docs/index.html b/docs/index.htmlindex 8ee3fd3..2a485ff 100644--- a/docs/index.html+++ b/docs/index.html@@ -44,13 +44,27 @@ h1 { margin: 12px 0 0; font-family: "GSF Display", "GSF Text", system-ui, sans-s.note { margin-top: 10px; font-size: 15px; color: var(--sub); } .note span { white-space: nowrap; }/* The demo is our own thumbnail until tapped; only then does the YouTube player (no-cookie) load. */.video { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: var(--tint); box-shadow: var(--shadow); }-.video img, .video iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }+.video img { display: block; width: 100%; height: 100%; object-fit: cover; }.video:focus-visible { outline: 3px solid var(--pri); outline-offset: 3px; }+/* Tapping it opens the player in a centred modal: 16:9, 90% of the width, capped so it fits the height. */+.player { padding: 0; border: 0; background: none; width: min(90vw, (90vh - 56px) * 16 / 9); max-width: none; max-height: none; overflow: visible; }+.player::backdrop { background: rgb(0 0 0 / .72); backdrop-filter: blur(8px); }+.player .close { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 0 12px auto; border: 0; border-radius: 50%; background: rgb(255 255 255 / .16); color: #fff; cursor: pointer; }+.player .close svg { width: 24px; height: 24px; fill: currentColor; }+.player .close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }+.player .frame { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }+.player iframe { display: block; width: 100%; height: 100%; border: 0; }+:root:has(.player[open]) { overflow: hidden; }+@media (prefers-reduced-motion: no-preference) {+ .player[open] { animation: pop .2s ease-out; } .player[open]::backdrop { animation: fade .2s ease-out; }+ @keyframes pop { from { opacity: 0; transform: scale(.96); } } @keyframes fade { from { opacity: 0; } }+}@media (max-width: 760px) {.wrap { padding: 0 20px; }.btn.sm { display: none; }.hero { grid-template-columns: 1fr; gap: 40px; min-height: 0; padding: 8px 0 48px; }.eyebrow { font-size: 18px; } h1 { font-size: 46px; } .lead { font-size: 19px; margin-top: 16px; }+ .player { width: min(100vw - 16px, (100vh - 72px) * 16 / 9); }.cta { margin-top: 26px; } .btn { height: 52px; padding: 0 24px; font-size: 17px; }}</style></head><body>@@ -70,6 +84,7 @@ h1 { margin: 12px 0 0; font-family: "GSF Display", "GSF Text", system-ui, sans-s<a class="video" id="demo" href="https://youtu.be/N_PeDw5GiCc" aria-label="Play the demo video"><img src="site/demo-thumb.webp" alt="" width="1280" height="720" fetchpriority="high"></a></main></div>+<dialog class="player" id="player" aria-label="Tellyscope demo"><button class="close" aria-label="Close video"><svg viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg></button><div class="frame"></div></dialog><script>const root = document.documentElement, btn = document.getElementById('theme');const paint = () => btn.setAttribute('aria-label', root.dataset.theme === 'dark' ? 'Switch to light theme' : 'Switch to dark theme');@@ -91,8 +106,9 @@ fetch('https://api.github.com/repos/man15h/tellyscope/releases/latest')a.querySelector('span').textContent = 'Download ' + rel.tag_name;}).catch(() => {});-// Tapping the demo swaps the thumbnail for the player; without JS it is a plain link to YouTube.-const demo = document.getElementById('demo');+// Tapping the demo opens the player in a modal; without JS it is a plain link to YouTube. The player (no-cookie) only+// loads on open and is removed on close, so the video stops. Esc, the close button and a backdrop tap all close it.+const demo = document.getElementById('demo'), player = document.getElementById('player'), frame = player.querySelector('.frame');demo.onclick = e => {e.preventDefault();const f = document.createElement('iframe');@@ -100,10 +116,11 @@ demo.onclick = e => {f.title = 'Tellyscope demo';f.allow = 'autoplay; encrypted-media; picture-in-picture; fullscreen';f.allowFullscreen = true;- const box = document.createElement('div');- box.className = 'video';- box.append(f);- demo.replaceWith(box);+ frame.replaceChildren(f);+ player.showModal();};+player.querySelector('.close').onclick = () => player.close();+player.onclick = e => { if (e.target === player) player.close(); };+player.onclose = () => { frame.replaceChildren(); demo.focus(); };</script></body></html>\ No newline at end of file