diff --git a/Install_New_theme.bat b/Install_New_theme.bat index b547526..58e8b86 100644 --- a/Install_New_theme.bat +++ b/Install_New_theme.bat @@ -1,6 +1,14 @@ @echo off -%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "&{[Net.ServicePointManager]::SecurityProtocol = 3072}; """"& { $(Invoke-WebRequest -UseBasicParsing 'https://spotx-official.github.io/run.ps1')} -new_theme """" | Invoke-Expression" +:: Line for changing spotx parameters, each parameter should be separated by a space +set param=-new_theme + +set url='https://raw.githubusercontent.com/SpotX-Official/spotx-official.github.io/main/run.ps1' +set url2='https://spotx-official.github.io/run.ps1' +set tls=[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12; + +%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe ^ +-Command %tls% $p='%param%'; """ & { $(try { iwr -useb %url% } catch { $p+= ' -m'; iwr -useb %url2% })} $p """" | iex pause exit /b \ No newline at end of file diff --git a/Install_Old_theme.bat b/Install_Old_theme.bat index 63922f3..c3c08bb 100644 --- a/Install_Old_theme.bat +++ b/Install_Old_theme.bat @@ -1,6 +1,14 @@ @echo off -%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "&{[Net.ServicePointManager]::SecurityProtocol = 3072}; """"& { $(Invoke-WebRequest -UseBasicParsing 'https://spotx-official.github.io/run.ps1')} -v 1.2.13.661.ga588f749-4064 -confirm_spoti_recomended_over -block_update_on """" | Invoke-Expression" +:: Line for changing spotx parameters, each parameter should be separated by a space +set param=-v 1.2.13.661.ga588f749-4064 -confirm_spoti_recomended_over -block_update_on + +set url='https://raw.githubusercontent.com/SpotX-Official/spotx-official.github.io/main/run.ps1' +set url2='https://spotx-official.github.io/run.ps1' +set tls=[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12; + +%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe ^ +-Command %tls% $p='%param%'; """ & { $(try { iwr -useb %url% } catch { $p+= ' -m'; iwr -useb %url2% })} $p """" | iex pause exit /b \ No newline at end of file diff --git a/LICENSE b/LICENSE index 35c8826..4f95db4 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021-2023 amd64fox +Copyright (c) 2021-2024 amd64fox Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index dc1a7bf..60331c0 100644 --- a/README.md +++ b/README.md @@ -24,10 +24,7 @@ - Hiding podcasts, episodes and audiobooks from the homepage (optional) - Block Spotify automatic updates (optional) - More experimental features have been activated ([see the full list](https://github.com/SpotX-Official/SpotX/discussions/50)) -- Disabled Sentry (Prevented Sentry from sending console log/error/warning to Spotify developers) -- Disabled logging (Stopped various elements to log user interaction) -- Removed RTL rules (Removed all right-to-left CSS rules to simplify CSS files) -- Code minification +- Disabled sentry's console log/error/warning messages to Spotify developers, halted user interaction logging, eliminated right-to-left CSS rules for simplification, and performed code minification

Fast installation / Update

Choose installation type:

@@ -48,7 +45,13 @@ or #### Run The following command in PowerShell: ```ps1 -[Net.ServicePointManager]::SecurityProtocol = 3072; iex "& { $(iwr -useb 'https://spotx-official.github.io/run.ps1') } -new_theme" +iex "& { $(iwr -useb 'https://raw.githubusercontent.com/SpotX-Official/spotx-official.github.io/main/run.ps1') } -new_theme" +``` + +#### mirror + +```ps1 +iex "& { $(iwr -useb 'https://spotx-official.github.io/run.ps1') } -m -new_theme" ``` @@ -72,7 +75,13 @@ or #### Run The following command in PowerShell: ```ps1 -[Net.ServicePointManager]::SecurityProtocol = 3072; iex "& { $(iwr -useb 'https://spotx-official.github.io/run.ps1') } -v 1.2.13.661.ga588f749-4064 -confirm_spoti_recomended_over -block_update_on" +iex "& { $(iwr -useb 'https://raw.githubusercontent.com/SpotX-Official/spotx-official.github.io/main/run.ps1') } -v 1.2.13.661.ga588f749-4064 -confirm_spoti_recomended_over -block_update_on" +``` + +#### mirror + +```ps1 +iex "& { $(iwr -useb 'https://spotx-official.github.io/run.ps1') } -m -v 1.2.13.661.ga588f749-4064 -confirm_spoti_recomended_over -block_update_on" ``` @@ -101,7 +110,13 @@ or #### Run The following command in PowerShell: ```ps1 -[Net.ServicePointManager]::SecurityProtocol = 3072; iex "& { $(iwr -useb 'https://spotx-official.github.io/run.ps1') } -confirm_uninstall_ms_spoti -confirm_spoti_recomended_over -podcasts_off -block_update_on -start_spoti -new_theme -adsections_off -lyrics_stat spotify" +iex "& { $(iwr -useb 'https://raw.githubusercontent.com/SpotX-Official/spotx-official.github.io/main/run.ps1') } -confirm_uninstall_ms_spoti -confirm_spoti_recomended_over -podcasts_off -block_update_on -start_spoti -new_theme -adsections_off -lyrics_stat spotify" +``` + +#### mirror + +```ps1 +iex "& { $(iwr -useb 'https://spotx-official.github.io/run.ps1') } -m -confirm_uninstall_ms_spoti -confirm_spoti_recomended_over -podcasts_off -block_update_on -start_spoti -new_theme -adsections_off -lyrics_stat spotify" ``` @@ -127,7 +142,13 @@ or #### Run The following command in PowerShell: ```ps1 -[Net.ServicePointManager]::SecurityProtocol = 3072; iex "& { $(iwr -useb 'https://spotx-official.github.io/run.ps1') } -premium -new_theme" +iex "& { $(iwr -useb 'https://raw.githubusercontent.com/SpotX-Official/spotx-official.github.io/main/run.ps1') } -premium -new_theme" +``` + +#### mirror + +```ps1 +iex "& { $(iwr -useb 'https://spotx-official.github.io/run.ps1') } -m -premium -new_theme" ```