mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-06-20 06:10:05 +10:00
fixed line 2
This commit is contained in:
@@ -118,6 +118,54 @@ param
|
|||||||
# Ignore errors from `Stop-Process`
|
# Ignore errors from `Stop-Process`
|
||||||
$PSDefaultParameterValues['Stop-Process:ErrorAction'] = [System.Management.Automation.ActionPreference]::SilentlyContinue
|
$PSDefaultParameterValues['Stop-Process:ErrorAction'] = [System.Management.Automation.ActionPreference]::SilentlyContinue
|
||||||
|
|
||||||
|
|
||||||
|
function Show-SpotXRIP {
|
||||||
|
$SpotXRipLogo = @"
|
||||||
|
|
||||||
|
███████╗██████╗ ██████╗ ████████╗██╗ ██╗ ██████╗ ██╗██████╗
|
||||||
|
██╔════╝██╔══██╗██╔═══██╗╚══██╔══╝╚██╗██╔╝ ██╔══██╗██║██╔══██╗
|
||||||
|
███████╗██████╔╝██║ ██║ ██║ ╚███╔╝ ██████╔╝██║██████╔╝
|
||||||
|
╚════██║██╔═══╝ ██║ ██║ ██║ ██╔██╗ ██╔══██╗██║██╔═══╝
|
||||||
|
███████║██║ ╚██████╔╝ ██║ ██╔╝ ██╗ ██║ ██║██║██║
|
||||||
|
╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝╚═╝
|
||||||
|
|
||||||
|
"@
|
||||||
|
# Convert to UTF8 to ensure proper display
|
||||||
|
$SpotXRipLogo = [System.Text.Encoding]::UTF8.GetString([System.Text.Encoding]::Default.GetBytes($SpotXRipLogo))
|
||||||
|
Write-Host $SpotXRipLogo -ForegroundColor Red
|
||||||
|
|
||||||
|
Write-Host "SpotX is completely broken. The project has officially shut down and is no longer maintained as of today." -ForegroundColor Yellow
|
||||||
|
Write-Host "Thank you for all your support throughout the years." -ForegroundColor Yellow
|
||||||
|
Write-Host
|
||||||
|
|
||||||
|
$message = "Choose an option:"
|
||||||
|
$options = [System.Management.Automation.Host.ChoiceDescription[]] @(
|
||||||
|
New-Object System.Management.Automation.Host.ChoiceDescription "&Exit", "Exit the script"
|
||||||
|
New-Object System.Management.Automation.Host.ChoiceDescription "&RIP", "RIP"
|
||||||
|
)
|
||||||
|
|
||||||
|
$choice = $host.UI.PromptForChoice("", $message, $options, 0)
|
||||||
|
|
||||||
|
switch ($choice) {
|
||||||
|
0 {
|
||||||
|
Write-Host "press any key to exit" -ForegroundColor Red
|
||||||
|
$null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
|
||||||
|
Exit
|
||||||
|
}
|
||||||
|
1 {
|
||||||
|
cls
|
||||||
|
Write-Host "Alright, that was a stupid joke. Happy April Fools' Day!" -ForegroundColor Green
|
||||||
|
Write-Host
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Show-SpotXRIP
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function Format-LanguageCode {
|
function Format-LanguageCode {
|
||||||
|
|
||||||
# Normalizes and confirms support of the selected language.
|
# Normalizes and confirms support of the selected language.
|
||||||
@@ -613,48 +661,6 @@ function Kill-Spotify {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function Show-SpotXRIP {
|
|
||||||
Write-Host @"
|
|
||||||
|
|
||||||
███████╗██████╗ ██████╗ ████████╗██╗ ██╗ ██████╗ ██╗██████╗
|
|
||||||
██╔════╝██╔══██╗██╔═══██╗╚══██╔══╝╚██╗██╔╝ ██╔══██╗██║██╔══██╗
|
|
||||||
███████╗██████╔╝██║ ██║ ██║ ╚███╔╝ ██████╔╝██║██████╔╝
|
|
||||||
╚════██║██╔═══╝ ██║ ██║ ██║ ██╔██╗ ██╔══██╗██║██╔═══╝
|
|
||||||
███████║██║ ╚██████╔╝ ██║ ██╔╝ ██╗ ██║ ██║██║██║
|
|
||||||
╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝╚═╝
|
|
||||||
|
|
||||||
"@ -ForegroundColor Red
|
|
||||||
|
|
||||||
Write-Host "SpotX is completely broken. The project has officially shut down and is no longer maintained as of today." -ForegroundColor Yellow
|
|
||||||
Write-Host "Thank you for all your support throughout the years." -ForegroundColor Yellow
|
|
||||||
Write-Host
|
|
||||||
|
|
||||||
$message = "Choose an option:"
|
|
||||||
$options = [System.Management.Automation.Host.ChoiceDescription[]] @(
|
|
||||||
New-Object System.Management.Automation.Host.ChoiceDescription "&Exit", "Exit the script"
|
|
||||||
New-Object System.Management.Automation.Host.ChoiceDescription "&RIP", "RIP"
|
|
||||||
)
|
|
||||||
|
|
||||||
$choice = $host.UI.PromptForChoice("", $message, $options, 0)
|
|
||||||
|
|
||||||
switch ($choice) {
|
|
||||||
0 {
|
|
||||||
Write-Host "press any key to exit" -ForegroundColor Red
|
|
||||||
$null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
|
|
||||||
Exit
|
|
||||||
}
|
|
||||||
1 {
|
|
||||||
cls
|
|
||||||
Write-Host "Alright, that was a stupid joke. Happy April Fools' Day!" -ForegroundColor Green
|
|
||||||
Write-Host
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Show-SpotXRIP
|
|
||||||
|
|
||||||
|
|
||||||
Kill-Spotify
|
Kill-Spotify
|
||||||
|
|
||||||
# Remove Spotify Windows Store If Any
|
# Remove Spotify Windows Store If Any
|
||||||
|
|||||||
Reference in New Issue
Block a user