diff --git a/patches/patches.json b/patches/patches.json index a6b7797..d1538cc 100644 --- a/patches/patches.json +++ b/patches/patches.json @@ -1941,6 +1941,14 @@ }, "match": "(?:\\(?await )?.\\.build.{20,60}encodeURIComponent.{20,140}\"\\/track\\/{trackId}.+?send\\(\\)(?:\\)\\.body)?", "replace": "{}" + }, + "fixTitlebarHeight": { + "version": { + "fr": "1.2.45", + "to": "" + }, + "match": "(\"update_titlebar\",height:).", + "replace": "$140" } } } \ No newline at end of file diff --git a/run.ps1 b/run.ps1 index 641578f..85dbcd8 100644 --- a/run.ps1 +++ b/run.ps1 @@ -1162,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)) { Move-Json -n "GlobalNavBar", "RecentSearchesDropdown" -t $Enable -f $Disable $Custom.GlobalNavBar.value = "control" } @@ -1316,6 +1316,11 @@ function Helper($paramname) { $VarJs = $webjson.VariousJs + + if ($topsearchbar) { + Remove-Json -j $VarJs -p "fixTitlebarHeight" + } + if (!($lyrics_block)) { Remove-Json -j $VarJs -p "lyrics-block" } else {