Skip to content

Commit

Permalink
version bump to 1.2.35.663
Browse files Browse the repository at this point in the history
- fixed devtools and downloadquality patch
  • Loading branch information
amd64fox committed Apr 9, 2024
1 parent cd173c4 commit 22c9a48
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 10 deletions.
21 changes: 12 additions & 9 deletions patches/patches.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@
]
},
"downloadquality": {
"version": {
"fr": "1.2.30",
"to": ""
},
"match": "(return[^;]*?)(null[^;]*?desktop\\.settings\\.downloadQuality\\.title)",
"replace": "return true ? $2"
},
"downloadqualityold": {
"version": {
"fr": "1.1.70",
"to": "1.2.29"
Expand All @@ -72,7 +64,7 @@
"to": ""
},
"match": "((..createElement|children:\\(.{1,7}\\))\\(.{1,7},{source:).{1,7}get\\(\"about.copyright\",.\\),paragraphClassName:.}\\)",
"replace": "<h3>More about SpotX</h3><br><details><summary>{0} Github</summary><a href='https://github.com/SpotX-Official/SpotX'>SpotX-Windows</a><br><a href='https://github.com/jetfir3/SpotX-Bash'>SpotX-Mac/Linux</a><br><br/></details><details><summary>{1} Telegram</summary><a href='https://t.me/SpotxCommunity'>SpotX Community</a><br><a href='https://t.me/spotify_windows_mod'>SpotX Channel</a><br><br/></details><details><summary>{2} FAQ</summary><a href='https://te.legra.ph/SpotX-FAQ-09-19'>Windows</a><br><a href='https://github.com/jetfir3/SpotX-Bash/wiki/SpotX%E2%80%90Bash-FAQ'>Mac/Linux</a></details><br><h4>DISCLAIMER</h4>SpotX is a modified version of the official Spotify client, provided as an evaluation version, you use it at your own risk.",
"replace": "<h3>More about SpotX</h3><br><details><summary>{0} Github</summary><a href='https://github.com/SpotX-Official/SpotX'>SpotX-Windows</a><br><a href='https://github.com/SpotX-Official/SpotX-Bash'>SpotX-Mac/Linux</a><br><br/></details><details><summary>{1} Telegram</summary><a href='https://t.me/SpotxCommunity'>SpotX Community</a><br><a href='https://t.me/spotify_windows_mod'>SpotX Channel</a><br><br/></details><details><summary>{2} FAQ</summary><a href='https://te.legra.ph/SpotX-FAQ-09-19'>Windows</a><br><a href='https://github.com/jetfir3/SpotX-Bash/wiki/SpotX%E2%80%90Bash-FAQ'>Mac/Linux</a></details><br><h4>DISCLAIMER</h4>SpotX is a modified version of the official Spotify client, provided as an evaluation version, you use it at your own risk.",
"svgtg": "<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>",
"svggit": "<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>",
"svgfaq": "<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>"
Expand Down Expand Up @@ -1576,6 +1568,13 @@
""
]
},
"downloadquality": {
"version": {
"fr": "1.2.30",
"to": ""
},
"add": " .weV_qxFz4gF5sPotO10y:has([for=\"desktop.settings.downloadQuality\"]) {display: none}"
},
"downloadicon": {
"version": {
"fr": "1.1.74",
Expand All @@ -1591,6 +1590,10 @@
"add": " .pzkhLqffqF_4hucrVVQA, .egE6UQjF_UUoCzvMxREj {display:none}"
},
"veryhighstream": {
"version": {
"fr": "1.1.74",
"to": "1.2.29"
},
"add": " #desktop\\.settings\\.streamingQuality>option:nth-child(5) {display:none}"
},
"fix-old-theme": {
Expand Down
37 changes: 36 additions & 1 deletion run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ if (!($version -and $version -match $match_v)) {
}
else {
# Recommended version for Win 10-12
$onlineFull = "1.2.34.783.g923721d9-5822"
$onlineFull = "1.2.35.663.gb699649e-6892"
}
}
else {
Expand Down Expand Up @@ -1270,12 +1270,40 @@ function Helper($paramname) {
$contents = "collaboration"
$json = $webjson.others
}
"Dev" {

$name = "patches.json.others."
$n = "xpui-routes-desktop-settings.js"
$contents = "dev-tools"
$json = $webjson.others

}
"VariousofXpui-js" {

$VarJs = $webjson.VariousJs

if (!($devtools)) { Remove-Json -j $VarJs -p "dev-tools" }

else {
if ([version]$offline -ge [version]"1.2.35.663") {

# Create a copy of 'dev-tools'
$newDevTools = $webjson.VariousJs.'dev-tools'.PSObject.Copy()

# Delete the first item and change the version
$newDevTools.match = $newDevTools.match[0], $newDevTools.match[2]
$newDevTools.replace = $newDevTools.replace[0], $newDevTools.replace[2]
$newDevTools.version.fr = '1.2.35'

# Assign a copy of 'devtools' to the 'devtools' property in $web json.others
$webjson.others | Add-Member -Name 'dev-tools' -Value $newDevTools -MemberType NoteProperty

# leave only first item in $web json.Various Js.'devtools' match & replace
$webjson.VariousJs.'dev-tools'.match = $webjson.VariousJs.'dev-tools'.match[1]
$webjson.VariousJs.'dev-tools'.replace = $webjson.VariousJs.'dev-tools'.replace[1]
}
}

if ($urlform_goofy -and $idbox_goofy) {
$webjson.VariousJs.goofyhistory.replace = "`$1 const urlForm=" + '"' + $urlform_goofy + '"' + ";const idBox=" + '"' + $idbox_goofy + '"' + $webjson.VariousJs.goofyhistory.replace
}
Expand Down Expand Up @@ -1630,6 +1658,9 @@ If ($test_spa) {

extract -counts 'one' -method 'zip' -name 'xpui.js' -helper 'VariousofXpui-js'

if ($devtools -and [version]$offline -ge [version]"1.2.35.663") {
extract -counts 'one' -method 'zip' -name 'xpui-routes-desktop-settings.js' -helper 'Dev'
}

# Hide Collaborators icon
if (!($hide_col_icon_off) -and !($exp_spotify)) {
Expand Down Expand Up @@ -1670,6 +1701,10 @@ If ($test_spa) {

# xpui.css
if (!($premium)) {
# Hide download block
if ([version]$offline -ge [version]"1.2.30.1135") {
$css += $webjson.others.downloadquality.add
}
# Hide download icon on different pages
$css += $webjson.others.downloadicon.add
# Hide submenu item "download"
Expand Down

0 comments on commit 22c9a48

Please sign in to comment.