mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-06-14 03:16:33 +10:00
Minor text corrections.
This commit is contained in:
+14
-14
@@ -1,9 +1,9 @@
|
|||||||
param
|
param
|
||||||
(
|
(
|
||||||
[Parameter(HelpMessage = 'Remove podcasts from homepage.')]
|
[Parameter(HelpMessage = 'Remove podcasts/episodes/audiobooks from homepage.')]
|
||||||
[switch]$podcasts_off,
|
[switch]$podcasts_off,
|
||||||
|
|
||||||
[Parameter(HelpMessage = 'Do not remove podcasts from homepage.')]
|
[Parameter(HelpMessage = 'Do not remove podcasts/episodes/audiobooks from homepage.')]
|
||||||
[switch]$podcasts_on,
|
[switch]$podcasts_on,
|
||||||
|
|
||||||
[Parameter(HelpMessage = 'Block Spotify automatic updates.')]
|
[Parameter(HelpMessage = 'Block Spotify automatic updates.')]
|
||||||
@@ -45,7 +45,7 @@ param
|
|||||||
[Parameter(HelpMessage = 'Do not hide the icon of collaborations in playlists.')]
|
[Parameter(HelpMessage = 'Do not hide the icon of collaborations in playlists.')]
|
||||||
[switch]$hide_col_icon_off,
|
[switch]$hide_col_icon_off,
|
||||||
|
|
||||||
[Parameter(HelpMessage = 'Do not enable the made for you button on the left sidebar.')]
|
[Parameter(HelpMessage = 'Do not enable the Made For You button on the left sidebar.')]
|
||||||
[switch]$made_for_you_off,
|
[switch]$made_for_you_off,
|
||||||
|
|
||||||
[Parameter(HelpMessage = 'Do not enable enhance playlist.')]
|
[Parameter(HelpMessage = 'Do not enable enhance playlist.')]
|
||||||
@@ -264,7 +264,7 @@ $lang = Set-ScriptLanguageStrings -LanguageCode $langCode
|
|||||||
|
|
||||||
# Set variable 'ru'.
|
# Set variable 'ru'.
|
||||||
if ($langCode -eq 'ru') { $ru = $true }
|
if ($langCode -eq 'ru') { $ru = $true }
|
||||||
# Set variable 'add transl line'.
|
# Set variable 'add translation line'.
|
||||||
if ($langCode -match '^(it|tr|ka|pl|es|fr|hi|pt|id|vi)') { $line = $true }
|
if ($langCode -match '^(it|tr|ka|pl|es|fr|hi|pt|id|vi)') { $line = $true }
|
||||||
|
|
||||||
# Automatic length of stars
|
# Automatic length of stars
|
||||||
@@ -326,7 +326,7 @@ function incorrectValue {
|
|||||||
|
|
||||||
function Check_verison_clients($param2) {
|
function Check_verison_clients($param2) {
|
||||||
|
|
||||||
# checking the recommended version for spotx
|
# Checking the recommended version for spotx
|
||||||
if ($param2 -eq "online") {
|
if ($param2 -eq "online") {
|
||||||
$ProgressPreference = 'SilentlyContinue' # Hiding Progress Bars
|
$ProgressPreference = 'SilentlyContinue' # Hiding Progress Bars
|
||||||
$readme = Invoke-WebRequest -UseBasicParsing -Uri https://raw.githubusercontent.com/SpotX-CLI/SpotX-Win/main/README.md
|
$readme = Invoke-WebRequest -UseBasicParsing -Uri https://raw.githubusercontent.com/SpotX-CLI/SpotX-Win/main/README.md
|
||||||
@@ -900,7 +900,7 @@ function Helper($paramname, $addstring) {
|
|||||||
# Removing a billboard on the homepage
|
# Removing a billboard on the homepage
|
||||||
Bilboard = '.(\?\[..\(..leaderboard,)', 'false$1'
|
Bilboard = '.(\?\[..\(..leaderboard,)', 'false$1'
|
||||||
# Removing audio ads
|
# Removing audio ads
|
||||||
AidioAds = '(case .:)return this.enabled=...+?(;case .:this.subscription=this.audioApi).+?(;case .)', '$1$2.cosmosConnector.increaseStreamTime(-100000000000)$3'
|
AudioAds = '(case .:)return this.enabled=...+?(;case .:this.subscription=this.audioApi).+?(;case .)', '$1$2.cosmosConnector.increaseStreamTime(-100000000000)$3'
|
||||||
# Removing an empty block
|
# Removing an empty block
|
||||||
EmptyBlockAd = 'adsEnabled:!0', 'adsEnabled:!1'
|
EmptyBlockAd = 'adsEnabled:!0', 'adsEnabled:!1'
|
||||||
# Fullscreen act., removing upgrade menu, button
|
# Fullscreen act., removing upgrade menu, button
|
||||||
@@ -922,7 +922,7 @@ function Helper($paramname, $addstring) {
|
|||||||
MostRecent = '("most-recent",value:")Most recent("\})', '$1Самые последние$2'
|
MostRecent = '("most-recent",value:")Most recent("\})', '$1Самые последние$2'
|
||||||
}
|
}
|
||||||
if ($bts) {
|
if ($bts) {
|
||||||
$offadson_fullscreen.Remove('Bilboard'), $offadson_fullscreen.Remove('AidioAds')
|
$offadson_fullscreen.Remove('Bilboard'), $offadson_fullscreen.Remove('AudioAds')
|
||||||
}
|
}
|
||||||
$ofline = Check_verison_clients -param2 "offline"
|
$ofline = Check_verison_clients -param2 "offline"
|
||||||
if (!($ru) -or $ofline -le "1.1.94.872") {
|
if (!($ru) -or $ofline -le "1.1.94.872") {
|
||||||
@@ -1276,7 +1276,7 @@ if (Test-Path $xpui_js_patch) {
|
|||||||
# Hide very high quality streaming
|
# Hide very high quality streaming
|
||||||
$writer.Write([System.Environment]::NewLine + ' #desktop\.settings\.streamingQuality>option:nth-child(5) {display:none}')
|
$writer.Write([System.Environment]::NewLine + ' #desktop\.settings\.streamingQuality>option:nth-child(5) {display:none}')
|
||||||
}
|
}
|
||||||
# new UI fix
|
# New UI fix
|
||||||
if (!($navalt_off)) {
|
if (!($navalt_off)) {
|
||||||
$writer.Write([System.Environment]::NewLine + ' .nav-alt .Root__top-container {background: #00000085;gap: 6px;padding: 8px;}')
|
$writer.Write([System.Environment]::NewLine + ' .nav-alt .Root__top-container {background: #00000085;gap: 6px;padding: 8px;}')
|
||||||
$writer.Write([System.Environment]::NewLine + ' .Root__fixed-top-bar {background-color: #00000000}')
|
$writer.Write([System.Environment]::NewLine + ' .Root__fixed-top-bar {background-color: #00000000}')
|
||||||
@@ -1432,7 +1432,7 @@ If (Test-Path $xpui_spa_patch) {
|
|||||||
$writer.Write($xpuiContents_vendor)
|
$writer.Write($xpuiContents_vendor)
|
||||||
$writer.Close()
|
$writer.Close()
|
||||||
|
|
||||||
# minification of all *.js
|
# Minification of all *.js
|
||||||
$zip.Entries | Where-Object FullName -like '*.js' | ForEach-Object {
|
$zip.Entries | Where-Object FullName -like '*.js' | ForEach-Object {
|
||||||
$readerjs = New-Object System.IO.StreamReader($_.Open())
|
$readerjs = New-Object System.IO.StreamReader($_.Open())
|
||||||
$xpuiContents_js = $readerjs.ReadToEnd()
|
$xpuiContents_js = $readerjs.ReadToEnd()
|
||||||
@@ -1465,7 +1465,7 @@ If (Test-Path $xpui_spa_patch) {
|
|||||||
$writer.Write([System.Environment]::NewLine + ' #desktop\.settings\.streamingQuality>option:nth-child(5) {display:none}')
|
$writer.Write([System.Environment]::NewLine + ' #desktop\.settings\.streamingQuality>option:nth-child(5) {display:none}')
|
||||||
}
|
}
|
||||||
|
|
||||||
# new UI fix
|
# New UI fix
|
||||||
if (!($navalt_off)) {
|
if (!($navalt_off)) {
|
||||||
$writer.Write([System.Environment]::NewLine + ' .nav-alt .Root__top-container {background: #00000085;gap: 6px;padding: 8px;}')
|
$writer.Write([System.Environment]::NewLine + ' .nav-alt .Root__top-container {background: #00000085;gap: 6px;padding: 8px;}')
|
||||||
$writer.Write([System.Environment]::NewLine + ' .Root__fixed-top-bar {background-color: #00000000}')
|
$writer.Write([System.Environment]::NewLine + ' .Root__fixed-top-bar {background-color: #00000000}')
|
||||||
@@ -1568,7 +1568,7 @@ if ($ru) {
|
|||||||
Remove-Item $patch_lang -Exclude *en*, *ru* -Recurse
|
Remove-Item $patch_lang -Exclude *en*, *ru* -Recurse
|
||||||
}
|
}
|
||||||
|
|
||||||
# create a desktop shortcut
|
# Create a desktop shortcut
|
||||||
$ErrorActionPreference = 'SilentlyContinue'
|
$ErrorActionPreference = 'SilentlyContinue'
|
||||||
|
|
||||||
if (!($no_shortcut)) {
|
if (!($no_shortcut)) {
|
||||||
@@ -1587,7 +1587,7 @@ if (!($no_shortcut)) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# create shortcut in start menu
|
# Create shortcut in start menu
|
||||||
If (!(Test-Path $start_menu)) {
|
If (!(Test-Path $start_menu)) {
|
||||||
$source = "$env:APPDATA\Spotify\Spotify.exe"
|
$source = "$env:APPDATA\Spotify\Spotify.exe"
|
||||||
$target = $start_menu
|
$target = $start_menu
|
||||||
@@ -1642,7 +1642,7 @@ if ($cache_install) {
|
|||||||
downloadScripts -param1 "run_ps"
|
downloadScripts -param1 "run_ps"
|
||||||
|
|
||||||
|
|
||||||
# create a desktop shortcut
|
# Create a desktop shortcut
|
||||||
if (!($no_shortcut)) {
|
if (!($no_shortcut)) {
|
||||||
$source2 = "$cache_folder\hide_window.vbs"
|
$source2 = "$cache_folder\hide_window.vbs"
|
||||||
$target2 = "$desktop_folder\Spotify.lnk"
|
$target2 = "$desktop_folder\Spotify.lnk"
|
||||||
@@ -1654,7 +1654,7 @@ if ($cache_install) {
|
|||||||
$Shortcut2.TargetPath = $source2
|
$Shortcut2.TargetPath = $source2
|
||||||
$Shortcut2.Save()
|
$Shortcut2.Save()
|
||||||
}
|
}
|
||||||
# create shortcut in start menu
|
# Create shortcut in start menu
|
||||||
$source2 = "$cache_folder\hide_window.vbs"
|
$source2 = "$cache_folder\hide_window.vbs"
|
||||||
$target2 = $start_menu
|
$target2 = $start_menu
|
||||||
$WorkingDir2 = "$cache_folder"
|
$WorkingDir2 = "$cache_folder"
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
- <strong>Blocks all banner, video and audio ads in the client</strong>
|
- <strong>Blocks all banner, video and audio ads in the client</strong>
|
||||||
- <strong>Unlocks the skip function of any track</strong>
|
- <strong>Unlocks the skip function of any track</strong>
|
||||||
- <strong>Hiding podcasts and episodes from the homepage (optional)</strong>
|
- <strong>Hiding podcasts, episodes and audiobooks from the homepage (optional)</strong>
|
||||||
- <strong>Block Spotify automatic updates (optional)</strong>
|
- <strong>Block Spotify automatic updates (optional)</strong>
|
||||||
- <strong>Automatic clearing of [audio cache](https://github.com/SpotX-CLI/SpotX-Win/discussions/2) (optional)</strong>
|
- <strong>Automatic clearing of [audio cache](https://github.com/SpotX-CLI/SpotX-Win/discussions/2) (optional)</strong>
|
||||||
- <strong>More experimental features have been activated ([see the full list](https://github.com/SpotX-CLI/SpotX-Win/discussions/50))</strong>
|
- <strong>More experimental features have been activated ([see the full list](https://github.com/SpotX-CLI/SpotX-Win/discussions/50))</strong>
|
||||||
@@ -63,7 +63,7 @@ or
|
|||||||
|
|
||||||
- Automatic removal of Spotify MS if it was found
|
- Automatic removal of Spotify MS if it was found
|
||||||
- Automatic installation of the recommended version of Spotify (if another client has already been found, it will be installed over)
|
- Automatic installation of the recommended version of Spotify (if another client has already been found, it will be installed over)
|
||||||
- Removal of podcasts from the main page
|
- Removal of podcasts/episodes/audiobooks from the main page
|
||||||
- Automatic blocking of Spotify updates
|
- Automatic blocking of Spotify updates
|
||||||
- All [experimental features](https://github.com/SpotX-CLI/SpotX-Win/discussions/50) included
|
- All [experimental features](https://github.com/SpotX-CLI/SpotX-Win/discussions/50) included
|
||||||
- After the installation is completed, the client will autorun.
|
- After the installation is completed, the client will autorun.
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
StopScrpit = "Script is stopped"
|
StopScrpit = "Script is stopped"
|
||||||
MsSpoti = "The Microsoft Store version of Spotify has been detected which is not supported"
|
MsSpoti = "The Microsoft Store version of Spotify has been detected which is not supported"
|
||||||
MsSpoti2 = "Uninstall Spotify Windows Store edition [Y/N]"
|
MsSpoti2 = "Uninstall Spotify Windows Store edition [Y/N]"
|
||||||
MsSpoti3 = "Automatic uninstalling Spotify MS..."
|
MsSpoti3 = "Automatically uninstalling Spotify MS..."
|
||||||
MsSpoti4 = "Uninstalling Spotify MS..."
|
MsSpoti4 = "Uninstalling Spotify MS..."
|
||||||
Prem = "Modification for premium account..."
|
Prem = "Modification for premium account..."
|
||||||
OldV = "Found outdated version of Spotify"
|
OldV = "Found outdated version of Spotify"
|
||||||
@@ -30,8 +30,8 @@
|
|||||||
DownSpoti2 = "Please wait..."
|
DownSpoti2 = "Please wait..."
|
||||||
PodcatsOff = "Off Podcasts"
|
PodcatsOff = "Off Podcasts"
|
||||||
PodcastsOn = "On Podcasts"
|
PodcastsOn = "On Podcasts"
|
||||||
PodcatsSelect = "Do you want to disable podcasts from the main page? [Y/N]"
|
PodcatsSelect = "Do you want to disable podcasts, episodes and audiobooks from the main page? [Y/N]"
|
||||||
DowngradeNote = "It is recommended to block because there was a downgrade of Spotify"
|
DowngradeNote = "It is recommended to block because Spotify was downgraded"
|
||||||
UpdBlock = "Spotify updates blocked"
|
UpdBlock = "Spotify updates blocked"
|
||||||
UpdUnblock = "Spotify updates are not blocked"
|
UpdUnblock = "Spotify updates are not blocked"
|
||||||
UpdSelect = "Want to block Spotify updates? [Y/N]"
|
UpdSelect = "Want to block Spotify updates? [Y/N]"
|
||||||
|
|||||||
Reference in New Issue
Block a user