diff --git a/.github/Pic/Excremental-fun/device_new.gif b/.github/Pic/Excremental-fun/device_new.gif new file mode 100644 index 0000000..f30173a Binary files /dev/null and b/.github/Pic/Excremental-fun/device_new.gif differ diff --git a/.github/Pic/Excremental-fun/equalizer.gif b/.github/Pic/Excremental-fun/equalizer.gif new file mode 100644 index 0000000..37ab8e1 Binary files /dev/null and b/.github/Pic/Excremental-fun/equalizer.gif differ diff --git a/Install.ps1 b/Install.ps1 index 92ac73b..6764b0c 100644 --- a/Install.ps1 +++ b/Install.ps1 @@ -38,6 +38,9 @@ param [Parameter(HelpMessage = 'Disable all experimental features.')] [switch]$exp_off, + + [Parameter(HelpMessage = 'Experimental features standart.')] + [switch]$exp_standart, [Parameter(HelpMessage = 'Do not hide the icon of collaborations in playlists.')] [switch]$hide_col_icon_off, @@ -45,9 +48,6 @@ param [Parameter(HelpMessage = 'Do not enable the made for you button on the left sidebar.')] [switch]$made_for_you_off, - [Parameter(HelpMessage = 'Do not enable new search.')] - [switch]$new_search_off, - [Parameter(HelpMessage = 'Do not enable enhance playlist.')] [switch]$enhance_playlist_off, @@ -62,6 +62,15 @@ param [Parameter(HelpMessage = 'Do not enable exception playlists from recommendations.')] [switch]$ignore_in_recommendations_off, + + [Parameter(HelpMessage = 'Enable audio equalizer for Desktop.')] + [switch]$equalizer_off, + + [Parameter(HelpMessage = 'Enable showing a new and improved device picker UI.')] + [switch]$device_new_off, + + [Parameter(HelpMessage = 'Enabled the new home structure and navigation.')] + [switch]$enablenavalt, [Parameter(HelpMessage = 'Select the desired language to use for installation. Default is the detected system language.')] [Alias('l')] @@ -72,17 +81,9 @@ param $PSDefaultParameterValues['Stop-Process:ErrorAction'] = [System.Management.Automation.ActionPreference]::SilentlyContinue function Format-LanguageCode { - <# - .SYNOPSIS - Normalizes and confirms support of the selected language. - - .DESCRIPTION - Normalizes the language code to the two letter form and verifies that the language is supported by the script. If the language is unsupported by the script, it defaults to English. - - .PARAMETER LanguageCode - Enter the desired language, language code, or culture code. -#> + # Normalizes and confirms support of the selected language. + [CmdletBinding()] [OutputType([string])] param @@ -127,19 +128,8 @@ function Format-LanguageCode { } function Set-ScriptLanguageStrings { - <# - .SYNOPSIS - Sets the language strings to be used. - .DESCRIPTION - Returns an object with language strings. Use the 'LanguageCode' switch to specify a language. - - .PARAMETER LanguageCode - Specify the language to be used. Two letter language codes (ex: 'en' or 'ru'). - - .EXAMPLE - PS C:\> Set-ScriptLanguage -LanguageCode 'en' -#> + #Sets the language strings to be used. [CmdletBinding()] [OutputType([object])] @@ -315,23 +305,6 @@ Write-Host "@Amd64fox" -ForegroundColor DarkYellow Write-Host "*****************"`n - -$ErrorActionPreference = 'SilentlyContinue' -$cutt_url = "https://cutt.ly/DK8UQub" -try { - Invoke-WebRequest -Uri $cutt_url | Out-Null -} -catch { - Start-Sleep -Milliseconds 2000 - try { - Invoke-WebRequest -Uri $cutt_url | Out-Null - } - catch { - Write-Host ($lang).CuttError`n -ForegroundColor RED - } -} - - $spotifyDirectory = "$env:APPDATA\Spotify" $spotifyDirectory2 = "$env:LOCALAPPDATA\Spotify" $spotifyExecutable = "$spotifyDirectory\Spotify.exe" @@ -867,192 +840,168 @@ if (!($cache_on) -and !($cache_off)) { } } -function OffPodcasts { +function Helper($paramname) { - # Turn off podcasts - $podcasts_off1 = 'withQueryParameters\(e\){return this.queryParameters=e,this}', 'withQueryParameters(e){return this.queryParameters=(e.types?{...e, types: e.types.split(",").filter(_ => !["episode","show"].includes(_)).join(",")}:e),this}' - $podcasts_off2 = ',this[.]enableShows=[a-z]' + switch ( $paramname ) { + "HtmlLicMin" { + # licenses.html minification + $html_lic_min = @{ + HtmlLicMin1 = '\r?\n(?!\(1|\d)', '' + HtmlLicMin2 = '(?m)(^\s*\r?\n)', '' + HtmlLicMin3 = ' ', '' + HtmlLicMin4 = ' ', '' + HtmlLicMin5 = '