diff --git a/src/ui.js b/src/ui.js index 1779406e..c12a26cc 100644 --- a/src/ui.js +++ b/src/ui.js @@ -245,6 +245,17 @@ function initHideLogo() { } function applyUIFixes() { + try { + const tc = window.tectonicConfig; + tc.clientData.legacyApplicationQuality = 'full-animation'; + tc.featureSwitches.enableAnimations = true; + tc.featureSwitches.enableListAnimations = true; + tc.featureSwitches.enableOnScrollLinearAnimation = true; + tc.featureSwitches.isLimitedMemory = false; + } catch (e) { + console.error('error setting tectonicConfig:', e); + } + try { const bodyClasses = document.body.classList; diff --git a/src/utils.js b/src/utils.js index 55519f00..e36d3cb6 100644 --- a/src/utils.js +++ b/src/utils.js @@ -9,9 +9,7 @@ export function extractLaunchParams() { } function getYTURL() { - const ytURL = new URL('https://www.youtube.com/tv#/'); - ytURL.searchParams.append('env_forceFullAnimation', '1'); - return ytURL; + return new URL('https://www.youtube.com/tv#/'); } /**