Skip to content

Commit

Permalink
version bump to 1.2.45.451
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
amd64fox committed Aug 24, 2024
1 parent 66a615a commit 7b56e38
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 10 deletions.
50 changes: 43 additions & 7 deletions patches/patches.json
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@
"native_description": "Enable Subfeed filter chips on home",
"version": {
"fr": "1.2.23",
"to": ""
"to": "1.2.44"
}
},
"SidebarAnimations": {
Expand Down Expand Up @@ -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": {
Expand All @@ -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": {
Expand Down Expand Up @@ -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;}",
Expand Down Expand Up @@ -1600,7 +1636,7 @@
"fixcsslyricscolor2": {
"version": {
"fr": "1.1.99",
"to": ""
"to": "1.2.44"
},
"match": [
"(:hover{color:var)\\(--lyrics-color-active\\)",
Expand Down Expand Up @@ -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 "
Expand All @@ -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{};"
Expand Down Expand Up @@ -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"
Expand Down
13 changes: 10 additions & 3 deletions run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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" }
Expand Down

0 comments on commit 7b56e38

Please sign in to comment.