From e4253530f2b7d51c0a4ff2c6a3ebc2bc0408f1da Mon Sep 17 00:00:00 2001 From: amd64fox <62529699+amd64fox@users.noreply.github.com> Date: Sat, 31 Aug 2024 19:49:56 +0300 Subject: [PATCH] carousel on main disabled - carousel on the main page is temporarily disabled because it causes lags in the main menu #624 - lyrics_stat patch fragment is disabled --- patches/patches.json | 2 +- run.ps1 | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/patches/patches.json b/patches/patches.json index 348300e..a6b7797 100644 --- a/patches/patches.json +++ b/patches/patches.json @@ -1162,7 +1162,7 @@ }, "HomeCarousels": { "name": "enableHomeCarousels", - "description": "Enable carousels on home", + "description": "Enable carousels on home (carousel is temporarily disabled because it causes lags in the main menu)", "native_description": "Enable carousels on home", "version": { "fr": "1.2.44", diff --git a/run.ps1 b/run.ps1 index abdae12..641578f 100644 --- a/run.ps1 +++ b/run.ps1 @@ -1149,6 +1149,9 @@ function Helper($paramname) { $Disable = $webjson.others.DisableExp $Custom = $webjson.others.CustomExp + # carousel is temporarily disabled because it causes lags in the main menu + Move-Json -n 'HomeCarousels' -t $Enable -f $Disable + if ([version]$offline -eq [version]'1.2.37.701' -or [version]$offline -eq [version]'1.2.38.720' ) { Move-Json -n 'DevicePickerSidePanel' -t $Enable -f $Disable } @@ -1159,7 +1162,7 @@ function Helper($paramname) { if (!($plus)) { Move-Json -n "Plus", "AlignedCurationSavedIn" -t $Enable -f $Disable } - if (!($topsearchbar) -and [version]$offline -le [version]"1.2.44.405") { + if (!($topsearchbar) -and [version]$offline -le [version]"1.2.44.405") { Move-Json -n "GlobalNavBar", "RecentSearchesDropdown" -t $Enable -f $Disable $Custom.GlobalNavBar.value = "control" } @@ -1752,7 +1755,7 @@ If ($test_spa) { } } # Full screen lyrics - if ($lyrics_stat -and [version]$offline -ge [version]"1.2.3.1107") { + if ($lyrics_stat -and [version]$offline -ge [version]"1.2.3.1107" -and [version]$offline -le [version]"1.2.44.405") { $css += $webjson.others.lyricscolor2.add[3] } if ($null -ne $css ) { extract -counts 'one' -method 'zip' -name 'xpui.css' -add $css }