diff --git a/Install.ps1 b/Install.ps1 index ec74f52..6625e1b 100644 --- a/Install.ps1 +++ b/Install.ps1 @@ -945,6 +945,12 @@ function Helper($paramname) { $webjson.others.$lyrics.replace[4] = '$1' + '"' + $background + '"' $webjson.others.$lyrics.replace[5] = '$1' + '"' + $hover + '"' $webjson.others.$lyrics.replace[6] = '$1' + '"' + $maxmatch + '"' + if ([version]$offline -ge [version]"1.2.6.861") { + $webjson.others.$lyrics.replace[7] = '$1' + '"' + $maxmatch + '"' + '$3' + } + else { + $webjson.others.$lyrics.match = $webjson.others.$lyrics.match | Where-Object { $_ -ne $webjson.others.$lyrics.match[7] } + } } # xpui-routes-lyrics.css diff --git a/patches/patches.json b/patches/patches.json index 6efa188..5411a3a 100644 --- a/patches/patches.json +++ b/patches/patches.json @@ -922,7 +922,8 @@ "(.--lyrics-color-inactive.:)(..inactive|..colors.text)", "(.--lyrics-color-background.:)((..|..colors.)background)", "(.--lyrics-color-hover.:)(\"xxx\")", - "(.--lyrics-color-maxmatch.:)(\"xxx\")" + "(.--lyrics-color-maxmatch.:)(\"xxx\")", + "(color:)(.{1,4}colors.text)(},children:.{1,8}get\\(\"web-player.lyrics.unsynced\"\\))" ], "replace": [ "$1,\"--lyrics-color-hover\":\"xxx\",\"--lyrics-color-maxmatch\":\"xxx\"", @@ -931,6 +932,7 @@ "", "", "", + "", "" ] },