mirror of
https://github.com/SpotX-Official/SpotX-Bash.git
synced 2026-04-11 17:37:20 +10:00
Update
This commit is contained in:
9
spotx.sh
9
spotx.sh
@@ -273,6 +273,7 @@ lyricsBackground='s|--lyrics-color-inactive":\K(.).inactive|$1.background|; s|--
|
||||
|
||||
logV3='s|sp://logging/v3/\w+||g'
|
||||
logSentry='s|this\.getStackTop\(\)\.client=e|return;$&|'
|
||||
logSentry2='s|sentry\.io|localhost.io|'
|
||||
|
||||
connectOld1='s| connect-device-list-item--disabled||' # 1.1.70.610+
|
||||
connectOld2='s|connect-picker.unavailable-to-control|spotify-connect|' # 1.1.70.610+
|
||||
@@ -293,9 +294,12 @@ enableFraudLoadSignals='s|Enable user fraud signals emitted on page load",defaul
|
||||
enableUserFraudSignals='s|Enable user fraud signals",default:\K!.(?=})|false|s'
|
||||
enableUserFraudVerification='s|Enable user fraud verification",default:\K!.(?=})|false|s'
|
||||
enableUserFraudVerificationRequest='s|Enable the IAV component make api requests",default:\K!.(?=})|false|s'
|
||||
gaboRequest='s|\x00\K\x67(?=\x61\x62\x6F\x2D\x72\x65\x63\x65\x69\x76\x65\x72\x2D\x73\x65\x72\x76\x69\x63\x65)|\x00|g'
|
||||
hptoEnabled='s|hptoEnabled:!\K0|1|s'
|
||||
hptoShown='s|isHptoShown:!\K0|1|gs'
|
||||
hptoShown2='s|[^=]*\.vK\)|false|s'
|
||||
hptoShown3='s|(ADS_PREMIUM,isPremium:)\w(.*?ADS_HPTO_HIDDEN,isHptoHidden:)\w|$1true$2true|'
|
||||
webgateRequest='s/@webgate\/(remote|gabo)/@$1/g'
|
||||
|
||||
echo -e "Latest supported version: ${sxbVer}"
|
||||
if [[ "${forceVer}" ]]; then
|
||||
@@ -485,7 +489,7 @@ if [[ -z "${paidPremium+x}" ]]; then
|
||||
$perlVar "${hideDLQual}" "${xpuiJs}"
|
||||
$perlVar "${hptoEnabled}" "${xpuiJs}"
|
||||
(($(ver "${clientVer}") > $(ver "1.1.84.716") && $(ver "${clientVer}") < $(ver "1.2.21.1104"))) && $perlVar "${hptoShown}" "${homeHptoJs}"
|
||||
(($(ver "${clientVer}") >= $(ver "1.2.21.1104"))) && $perlVar "${hptoShown2}" "${homeHptoJs}"
|
||||
(($(ver "${clientVer}") >= $(ver "1.2.21.1104"))) && $perlVar "${hptoShown3}" "${xpuiJs}"
|
||||
printf '%s\n%s\n%s' "${hideDLIcon}" "${hideDLMenu}" "${hideVeryHigh}" >> "${xpuiCss}"
|
||||
(($(ver "${clientVer}") < $(ver "1.1.91.824"))) && { $perlVar "${connectOld1}" "${xpuiJs}"; $perlVar "${connectOld2}" "${xpuiJs}"; $perlVar "${connectOld3}" "${xpuiJs}"; }
|
||||
(($(ver "${clientVer}") >= $(ver "1.1.91.824") && $(ver "${clientVer}") < $(ver "1.1.96.783"))) && { $perlVar "${enableImprovedDevicePickerUI1}" "${xpuiJs}"; $perlVar "${connectNew}" "${xpuiJs}"; }
|
||||
@@ -640,8 +644,11 @@ $perlVar "${enableFraudLoadSignals}" "${xpuiJs}"
|
||||
$perlVar "${enableUserFraudSignals}" "${xpuiJs}"
|
||||
$perlVar "${enableUserFraudVerification}" "${xpuiJs}"
|
||||
$perlVar "${enableUserFraudVerificationRequest}" "${xpuiJs}"
|
||||
$perlVar "${gaboRequest}" "${appBinary}"
|
||||
$perlVar "${webgateRequest}" "${vendorXpuiJs}"
|
||||
$perlVar "${logV3}" "${xpuiJs}"
|
||||
$perlVar "${logSentry}" "${vendorXpuiJs}"
|
||||
$perlVar "${logSentry2}" "${xpuiJs}"
|
||||
printf "\xE2\x9C\x94\x20\x52\x65\x6D\x6F\x76\x65\x64\x20\x6C\x6F\x67\x67\x69\x6E\x67\n"
|
||||
|
||||
$perlVar 's;((..createElement|children:\(.{1,7}\))\(.{1,7},\{source:).{1,7}get\("about.copyright",.\),paragraphClassName:.(?=\}\));$1"<h3>About SpotX / SpotX-Bash</h3><br><details><summary><svg xmlns='\''http://www.w3.org/2000/svg'\'' width='\''20'\'' height='\''20'\'' viewBox='\''0 0 24 24'\''><path d='\''M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z'\'' fill='\''#fff'\''/></svg> Github</summary><a href='\''https://github.com/SpotX-Official/SpotX'\''>SpotX \(Windows\)</a><br><a href='\''https://github.com/SpotX-Official/SpotX-Bash'\''>SpotX-Bash \(Linux/macOS\)</a><br><br/></details><details><summary><svg xmlns='\''http://www.w3.org/2000/svg'\'' width='\''20'\'' height='\''20'\'' viewBox='\''0 0 24 24'\''><path id='\''telegram-1'\'' d='\''M18.384,22.779c0.322,0.228 0.737,0.285 1.107,0.145c0.37,-0.141 0.642,-0.457 0.724,-0.84c0.869,-4.084 2.977,-14.421 3.768,-18.136c0.06,-0.28 -0.04,-0.571 -0.26,-0.758c-0.22,-0.187 -0.525,-0.241 -0.797,-0.14c-4.193,1.552 -17.106,6.397 -22.384,8.35c-0.335,0.124 -0.553,0.446 -0.542,0.799c0.012,0.354 0.25,0.661 0.593,0.764c2.367,0.708 5.474,1.693 5.474,1.693c0,0 1.452,4.385 2.209,6.615c0.095,0.28 0.314,0.5 0.603,0.576c0.288,0.075 0.596,-0.004 0.811,-0.207c1.216,-1.148 3.096,-2.923 3.096,-2.923c0,0 3.572,2.619 5.598,4.062Zm-11.01,-8.677l1.679,5.538l0.373,-3.507c0,0 6.487,-5.851 10.185,-9.186c0.108,-0.098 0.123,-0.262 0.033,-0.377c-0.089,-0.115 -0.253,-0.142 -0.376,-0.064c-4.286,2.737 -11.894,7.596 -11.894,7.596Z'\'' fill='\''#fff'\''/></svg> Telegram</summary><a href='\''https://t.me/spotify_windows_mod'\''>SpotX Channel</a><br><a href='\''https://t.me/SpotxCommunity'\''>SpotX Community</a><br><br/></details><details><summary><svg xmlns='\''http://www.w3.org/2000/svg'\'' width='\''20'\'' height='\''20'\'' viewBox='\''0 0 24 24'\''><path d='\''M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm1.25 17c0 .69-.559 1.25-1.25 1.25-.689 0-1.25-.56-1.25-1.25s.561-1.25 1.25-1.25c.691 0 1.25.56 1.25 1.25zm1.393-9.998c-.608-.616-1.515-.955-2.551-.955-2.18 0-3.59 1.55-3.59 3.95h2.011c0-1.486.829-2.013 1.538-2.013.634 0 1.307.421 1.364 1.226.062.847-.39 1.277-.962 1.821-1.412 1.343-1.438 1.993-1.432 3.468h2.005c-.013-.664.03-1.203.935-2.178.677-.73 1.519-1.638 1.536-3.022.011-.924-.284-1.719-.854-2.297z'\'' fill='\''#fff'\''/></svg> FAQ</summary><a href='\''https://te.legra.ph/SpotX-FAQ-09-19'\''>Windows</a><br><a href='\''https://github.com/SpotX-Official/SpotX-Bash/wiki/SpotX%E2%80%90Bash-FAQ'\''>Linux/macOS</a></details><br><h4>DISCLAIMER</h4>SpotX is a modified version of the official Spotify®\; client, provided "\;as is"\; for the purpose of evaluation at user'\''s own risk. Source code for SpotX is available separately and free of charge under open source software license agreements. SpotX is not affiliated with Spotify®\;, Spotify AB or Spotify Group.<br><br>Spotify®\; is a registered trademark of Spotify Group.";' "${xpuiDesktopModalsJs}"
|
||||
|
||||
Reference in New Issue
Block a user