fix navbar height 1.2.45+

This commit is contained in:
amd64fox
2024-09-02 12:59:12 +03:00
parent e4253530f2
commit 6753fb548f
2 changed files with 14 additions and 1 deletions

View File

@@ -1941,6 +1941,14 @@
}, },
"match": "(?:\\(?await )?.\\.build.{20,60}encodeURIComponent.{20,140}\"\\/track\\/{trackId}.+?send\\(\\)(?:\\)\\.body)?", "match": "(?:\\(?await )?.\\.build.{20,60}encodeURIComponent.{20,140}\"\\/track\\/{trackId}.+?send\\(\\)(?:\\)\\.body)?",
"replace": "{}" "replace": "{}"
},
"fixTitlebarHeight": {
"version": {
"fr": "1.2.45",
"to": ""
},
"match": "(\"update_titlebar\",height:).",
"replace": "$140"
} }
} }
} }

View File

@@ -1162,7 +1162,7 @@ function Helper($paramname) {
if (!($plus)) { Move-Json -n "Plus", "AlignedCurationSavedIn" -t $Enable -f $Disable } 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 Move-Json -n "GlobalNavBar", "RecentSearchesDropdown" -t $Enable -f $Disable
$Custom.GlobalNavBar.value = "control" $Custom.GlobalNavBar.value = "control"
} }
@@ -1316,6 +1316,11 @@ function Helper($paramname) {
$VarJs = $webjson.VariousJs $VarJs = $webjson.VariousJs
if ($topsearchbar) {
Remove-Json -j $VarJs -p "fixTitlebarHeight"
}
if (!($lyrics_block)) { Remove-Json -j $VarJs -p "lyrics-block" } if (!($lyrics_block)) { Remove-Json -j $VarJs -p "lyrics-block" }
else { else {