From d69b95262be3e76179c48762ae5812798c06b5ee Mon Sep 17 00:00:00 2001 From: amd64fox Date: Sun, 5 Dec 2021 13:00:36 +0300 Subject: [PATCH] Rolling back code with podcasts --- Install.ps1 | 10 +++++----- Install_rus.ps1 | 10 +++++----- README.md | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Install.ps1 b/Install.ps1 index 625bb2c..375c90c 100644 --- a/Install.ps1 +++ b/Install.ps1 @@ -153,7 +153,7 @@ Remove-Item -Recurse -LiteralPath $tempDirectory do { - $ch = Read-Host -Prompt "Want to remove podcasts from the home page ? (Y/N)" + $ch = Read-Host -Prompt "Want to turn off podcasts ? (Y/N)" Write-Host "" if (!($ch -eq 'n' -or $ch -eq 'y')) { @@ -197,10 +197,10 @@ If (Test-Path $xpui_js_patch) { <# Removing "Upgrade to premium" menu #> -replace 'visible:!e}[)]{1}[,]{1}[A-Za-z]{1}[(]{1}[)]{1}.createElement[(]{1}[A-Za-z]{2}[,]{1}null[)]{1}[,]{1}[A-Za-z]{1}[(]{1}[)]{1}.', $menu_split_js ` <# Disabling a playlist sponsor #> -replace "allSponsorships", "" - # Disable podcasts on the homepage + # Disable Podcast if ($Podcasts_off) { $new_js = $new_js ` - -replace '"album,playlist,artist,show,station,episode"', '"album,playlist,artist,station"' + -replace '"album,playlist,artist,show,station,episode"', '"album,playlist,artist,station"' -replace ',this[.]enableShows=[a-z]', "" } Set-Content -Path $xpui_js_patch -Force -Value $new_js @@ -253,10 +253,10 @@ If (Test-Path $xpui_spa_patch) { <# Disabling a playlist sponsor #> -replace "allSponsorships", "" ` <# Disable Logging #> -replace "sp://logging/v3/\w+", "" - # Disable podcasts on the homepage + # Disable Podcast if ($Podcasts_off) { $xpuiContents = $xpuiContents ` - -replace '"album,playlist,artist,show,station,episode"', '"album,playlist,artist,station"' + -replace '"album,playlist,artist,show,station,episode"', '"album,playlist,artist,station"' -replace ',this[.]enableShows=[a-z]', "" } $writer = New-Object System.IO.StreamWriter($entry_xpui.Open()) diff --git a/Install_rus.ps1 b/Install_rus.ps1 index b1782a9..011a0c0 100644 --- a/Install_rus.ps1 +++ b/Install_rus.ps1 @@ -153,7 +153,7 @@ Remove-Item -Recurse -LiteralPath $tempDirectory do { - $ch = Read-Host -Prompt "Хотите удалить подкасты с домашней страницы ? (Y/N)" + $ch = Read-Host -Prompt "Хотите отключить подкасты ? (Y/N)" Write-Host "" if (!($ch -eq 'n' -or $ch -eq 'y')) { @@ -198,10 +198,10 @@ If (Test-Path $xpui_js_patch) { <# Removing "Upgrade to premium" menu #> -replace 'visible:!e}[)]{1}[,]{1}[A-Za-z]{1}[(]{1}[)]{1}.createElement[(]{1}[A-Za-z]{2}[,]{1}null[)]{1}[,]{1}[A-Za-z]{1}[(]{1}[)]{1}.', $menu_split_js ` <# Disabling a playlist sponsor #> -replace "allSponsorships", "" - # Disable podcasts on the homepage + # Disable Podcast if ($Podcasts_off) { $new_js = $new_js ` - -replace '"album,playlist,artist,show,station,episode"', '"album,playlist,artist,station"' + -replace '"album,playlist,artist,show,station,episode"', '"album,playlist,artist,station"' -replace ',this[.]enableShows=[a-z]', "" } Set-Content -Path $xpui_js_patch -Force -Value $new_js @@ -254,10 +254,10 @@ If (Test-Path $xpui_spa_patch) { <# Disabling a playlist sponsor #> -replace "allSponsorships", "" ` <# Disable Logging #> -replace "sp://logging/v3/\w+", "" - # Disable podcasts on the homepage + # Disable Podcast if ($Podcasts_off) { $xpuiContents = $xpuiContents ` - -replace '"album,playlist,artist,show,station,episode"', '"album,playlist,artist,station"' + -replace '"album,playlist,artist,show,station,episode"', '"album,playlist,artist,station"' -replace ',this[.]enableShows=[a-z]', "" } $writer = New-Object System.IO.StreamWriter($entry_xpui.Open()) diff --git a/README.md b/README.md index bf58b0f..e300cd1 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ * Blocks all banner, video and audio ads in the client * Unlocks the skip function of any track * Blocks automatic updates (optional) -* Disabled podcasts on the homepage (optional) +* Podcasts disabled (optional) * [Automatic cache clearing](https://github.com/amd64fox/SpotX/discussions/2) (optional) * Disabled Sentry (Prevented Sentry from sending console log/error/warning to Spotify developers) * Disabled logging (Stopped various elements to log user interaction)