diff --git a/patches/patches.json b/patches/patches.json index f26719c..65011fb 100644 --- a/patches/patches.json +++ b/patches/patches.json @@ -1755,6 +1755,14 @@ }, "match": "(getTracksFilterTags.+?(.)=this._builder.build\\(\\)),", "replace": "$1;$2.locale = 'en';const " + }, + "lyrics-block": { + "version": { + "fr": "1.1.70", + "to": "" + }, + "match": "(?:\\(?await )?.\\.build.{20,60}encodeURIComponent.{20,140}\"\\/track\\/{trackId}.+?send\\(\\)(?:\\)\\.body)?", + "replace": "{}" } } } \ No newline at end of file diff --git a/run.ps1 b/run.ps1 index 7e23836..4036f9b 100644 --- a/run.ps1 +++ b/run.ps1 @@ -87,7 +87,10 @@ param [Parameter(HelpMessage = 'Returns old lyrics')] [switch]$old_lyrics, - + + [Parameter(HelpMessage = 'Disable native lyrics')] + [switch]$lyrics_block, + [Parameter(HelpMessage = 'Do not create desktop shortcut.')] [switch]$no_shortcut, @@ -1320,6 +1323,9 @@ function Helper($paramname) { $VarJs = $webjson.VariousJs + if (!($lyrics_block)) { Remove-Json -j $VarJs -p "lyrics-block" } + + if (!($devtools)) { Remove-Json -j $VarJs -p "dev-tools" } else {