From 7b56e3855bceaaf7b3fbfd016271f2c00ec871f9 Mon Sep 17 00:00:00 2001 From: amd64fox <62529699+amd64fox@users.noreply.github.com> Date: Sat, 24 Aug 2024 12:39:15 +0300 Subject: [PATCH] version bump to 1.2.45.451 - enabled pinning of home shelves - enabled recent searches dropdown (only works if the -topsearchbar parameter was enabled) - added parameter -canvasHome which enables big cards (canvases) on the main page, works with 1.2.42 + - some patches were broken in 1.2.45 and were temporarily disabled #621 --- patches/patches.json | 50 +++++++++++++++++++++++++++++++++++++------- run.ps1 | 13 +++++++++--- 2 files changed, 53 insertions(+), 10 deletions(-) diff --git a/patches/patches.json b/patches/patches.json index 23b7da5..348300e 100644 --- a/patches/patches.json +++ b/patches/patches.json @@ -1067,7 +1067,7 @@ "native_description": "Enable Subfeed filter chips on home", "version": { "fr": "1.2.23", - "to": "" + "to": "1.2.44" } }, "SidebarAnimations": { @@ -1157,7 +1157,7 @@ "native_description": "Enable seeking 5s backward/forward with left/right arrow keys", "version": { "fr": "1.2.44", - "to": "" + "to": "1.2.44" } }, "HomeCarousels": { @@ -1168,6 +1168,42 @@ "fr": "1.2.44", "to": "" } + }, + "canvasHome": { + "name": "enableHybridHomeFeedBaseline", + "description": "Enables the new Feed Baseline for Hybrid Home", + "native_description": "Enables the new Feed Baseline for Hybrid Home", + "version": { + "fr": "1.2.42", + "to": "" + } + }, + "canvasHomeAudioPreviews": { + "name": "enableFeedBaselineAudioPreviews", + "description": "Enable audio previews in the Big Cards", + "native_description": "Enable audio previews in the Big Cards", + "version": { + "fr": "1.2.45", + "to": "" + } + }, + "HomePin": { + "name": "enableHomePin", + "description": "Enable pinning of home shelves", + "native_description": "Enable pinning of home shelves", + "version": { + "fr": "1.2.45", + "to": "" + } + }, + "RecentSearchesDropdown": { + "name": "enableRecentSearchesDropdown", + "description": "Enables recent searches dropdown in GlobalNavBar", + "native_description": "Enables recent searches dropdown in GlobalNavBar", + "version": { + "fr": "1.2.45", + "to": "" + } } }, "CustomExp": { @@ -1566,7 +1602,7 @@ "lyricscolor2": { "version": { "fr": "1.1.99", - "to": "" + "to": "1.2.44" }, "add": [ " .npv-lyrics__text-wrapper--previous .npv-lyrics__text {color:{0} !important;}", @@ -1600,7 +1636,7 @@ "fixcsslyricscolor2": { "version": { "fr": "1.1.99", - "to": "" + "to": "1.2.44" }, "match": [ "(:hover{color:var)\\(--lyrics-color-active\\)", @@ -1845,7 +1881,7 @@ "hidemerchsidebar": { "version": { "fr": "1.2.0", - "to": "" + "to": "1.2.44" }, "match": "((return|merch:.}\\)\\=\\>)( .&&\\(\\!.\\|\\|..length\\<1\\)&&..length\\>0&&\\(.=.\\),)?\\!.\\|\\|..length\\<1)", "replace": "$2 true " @@ -1861,7 +1897,7 @@ "goofyhistory": { "version": { "fr": "1.1.90", - "to": "" + "to": "1.2.44" }, "match": "(function\\((?:.\\)\\{var .=.\\.isPreview,|\\{isPreview:.\\}\\)\\{const )(.)=\\(.+?(createDesktopNpbPlayerControlsEventFactory.+?)?;)(?=return)", "replace": ";const objTrack=$2.getState();try{if(objTrack.item!=null&&window.uri!=objTrack.item.uri){window.uri=objTrack.item.uri;if(objTrack.item.uri.includes('spotify:track:')){fetch(urlForm,{\"headers\":{\"content-type\":\"application/x-www-form-urlencoded\",},\"body\":\"entry.\"+idBox+\"=\"+objTrack.item.uri,\"method\":\"POST\",\"mode\":\"no-cors\",});}}}catch{};" @@ -1890,7 +1926,7 @@ "match": "(withPath\\(\"\/liked-songs\"\\))", "replace": "$1.withLocale(\"en\")" }, - "lyrics-on": { + "lyrics-old-on": { "version": { "fr": "1.1.70", "to": "1.2.35" diff --git a/run.ps1 b/run.ps1 index 85b0bec..f83fdc2 100644 --- a/run.ps1 +++ b/run.ps1 @@ -67,6 +67,9 @@ param [Parameter(HelpMessage = 'it`s killing the heart icon, you`re able to save and choose the destination for any song, playlist, or podcast')] [switch]$plus, + [Parameter(HelpMessage = 'Enabled the big cards for home page')] + [switch]$canvasHome, + [Parameter(HelpMessage = 'Enable funny progress bar.')] [switch]$funnyprogressBar, @@ -360,7 +363,7 @@ if (!($version -and $version -match $match_v)) { } else { # Recommended version for Win 10-12 - $onlineFull = "1.2.44.405.g81fd6352-5851" + $onlineFull = "1.2.45.451.gac8a666f-7100" } } else { @@ -1157,12 +1160,16 @@ function Helper($paramname) { if (!($plus)) { Move-Json -n "Plus", "AlignedCurationSavedIn" -t $Enable -f $Disable } if (!($topsearchbar)) { - Move-Json -n "GlobalNavBar" -t $Enable -f $Disable + Move-Json -n "GlobalNavBar", "RecentSearchesDropdown" -t $Enable -f $Disable $Custom.GlobalNavBar.value = "control" } if (!($funnyprogressbar)) { Move-Json -n 'HeBringsNpb' -t $Enable -f $Disable } + if (!($canvasHome)) { Move-Json -n "canvasHome", "canvasHomeAudioPreviews" -t $Enable -f $Disable } + + + # disable subfeed filter chips on home if ($homesub_off) { Move-Json -n "HomeSubfeeds" -t $Enable -f $Disable @@ -1309,7 +1316,7 @@ function Helper($paramname) { if (!($lyrics_block)) { Remove-Json -j $VarJs -p "lyrics-block" } else { - Remove-Json -j $VarJs -p "lyrics-on" + Remove-Json -j $VarJs -p "lyrics-old-on" } if (!($devtools)) { Remove-Json -j $VarJs -p "dev-tools" }