mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-04-22 02:50:18 +10:00
version bump to 1.2.10.760
- added a patch that forcibly disables some exp since Spotify developers had priority in remote mode #389 - cleaning obsolete code and parameters
This commit is contained in:
26
Install.ps1
26
Install.ps1
@@ -65,9 +65,6 @@ param
|
|||||||
|
|
||||||
[Parameter(HelpMessage = 'Enable audio equalizer for Desktop.')]
|
[Parameter(HelpMessage = 'Enable audio equalizer for Desktop.')]
|
||||||
[switch]$equalizer_off,
|
[switch]$equalizer_off,
|
||||||
|
|
||||||
[Parameter(HelpMessage = 'Return the old device picker')]
|
|
||||||
[switch]$device_picker_old,
|
|
||||||
|
|
||||||
[Parameter(HelpMessage = 'New theme activated (new right and left sidebar, some cover change)')]
|
[Parameter(HelpMessage = 'New theme activated (new right and left sidebar, some cover change)')]
|
||||||
[switch]$new_theme,
|
[switch]$new_theme,
|
||||||
@@ -278,7 +275,7 @@ if ($win7 -or $win8 -or $win8_1) {
|
|||||||
}
|
}
|
||||||
# Recommended version for Win 10-12
|
# Recommended version for Win 10-12
|
||||||
else {
|
else {
|
||||||
$onlineFull = "1.2.10.751.g9ce1ecb2-918"
|
$onlineFull = "1.2.10.760.g52970952-1106"
|
||||||
}
|
}
|
||||||
|
|
||||||
$online = ($onlineFull -split ".g")[0]
|
$online = ($onlineFull -split ".g")[0]
|
||||||
@@ -1014,6 +1011,15 @@ function Helper($paramname) {
|
|||||||
$n = "xpui.js"
|
$n = "xpui.js"
|
||||||
$contents = $webjson.free.psobject.properties.name
|
$contents = $webjson.free.psobject.properties.name
|
||||||
$json = $webjson.free
|
$json = $webjson.free
|
||||||
|
|
||||||
|
$expforced = $webjson.free.forcedDisabledExp.exp
|
||||||
|
|
||||||
|
if (!($new_theme)) {
|
||||||
|
$expforced = $expforced.Substring(0, $expforced.Length - 1) + ",'enableYLXSidebar']"
|
||||||
|
}
|
||||||
|
|
||||||
|
$repl = "`$1 var keys=$expforced; keys.forEach(function(key) {`$3.values.set(key, false);});`$2"
|
||||||
|
$webjson.free.forcedDisabledExp.replace = $repl
|
||||||
}
|
}
|
||||||
"OffPodcasts" {
|
"OffPodcasts" {
|
||||||
# Turn off podcasts
|
# Turn off podcasts
|
||||||
@@ -1080,17 +1086,11 @@ function Helper($paramname) {
|
|||||||
if ($new_artist_pages_off) { $rem.remove('disographyartist') }
|
if ($new_artist_pages_off) { $rem.remove('disographyartist') }
|
||||||
if ($new_lyrics_off) { $rem.remove('lyricsmatch') }
|
if ($new_lyrics_off) { $rem.remove('lyricsmatch') }
|
||||||
if ($equalizer_off) { $rem.remove('equalizer') }
|
if ($equalizer_off) { $rem.remove('equalizer') }
|
||||||
if (!($device_picker_old)) { $rem.remove('devicepickerold') }
|
|
||||||
if ($made_for_you_off) { $rem.remove('madeforyou') }
|
if ($made_for_you_off) { $rem.remove('madeforyou') }
|
||||||
if (!($new_theme)) {
|
|
||||||
$rem.remove('newhome'), $rem.remove('newhome2'), $rem.remove('lyricssidebar') , $rem.remove('showcreditsinsidebar'), $rem.remove('enableWhatsNewFeed');
|
|
||||||
$webjson.exp.rightsidebar.replace = "`$1false"
|
|
||||||
$webjson.exp.leftsidebar.replace = "`$1false"
|
|
||||||
}
|
|
||||||
# Old theme
|
# Old theme
|
||||||
else {
|
if (!($new_theme)) {
|
||||||
$webjson.exp.rightsidebar.replace = "`$1true"
|
$rem.remove('newhome'), $rem.remove('newhome2'), $rem.remove('lyricssidebar'), $rem.remove('showcreditsinsidebar'),
|
||||||
$webjson.exp.leftsidebar.replace = "`$1true"
|
$rem.remove('enableWhatsNewFeed'), $rem.remove('rightsidebar'), $rem.remove('leftsidebar');
|
||||||
}
|
}
|
||||||
if ($old_lyrics) { $rem.remove('lyricssidebar') }
|
if ($old_lyrics) { $rem.remove('lyricssidebar') }
|
||||||
if (!$premium) { $rem.remove('RemoteDownloads') }
|
if (!$premium) { $rem.remove('RemoteDownloads') }
|
||||||
|
|||||||
@@ -40,6 +40,15 @@
|
|||||||
"match": "allSponsorships",
|
"match": "allSponsorships",
|
||||||
"replace": ""
|
"replace": ""
|
||||||
},
|
},
|
||||||
|
"forcedDisabledExp": {
|
||||||
|
"version": {
|
||||||
|
"from": "1.1.92",
|
||||||
|
"do": ""
|
||||||
|
},
|
||||||
|
"match": "(VK.fromJSON\\(.\\)\\);)(return.+value:{localConfiguration:(.))",
|
||||||
|
"exp": "['enableInAppMessaging','Enable pick and shuffle','enableDesktopMusicLeavebehinds','enableHptoLocationRefactor','enableUserFraudSignals','enableUserFraudVerificationRequest','enableUserFraudVerification','enableEsperantoMigration']",
|
||||||
|
"replace": ""
|
||||||
|
},
|
||||||
"connectold": {
|
"connectold": {
|
||||||
"version": {
|
"version": {
|
||||||
"from": "1.1.70",
|
"from": "1.1.70",
|
||||||
@@ -632,7 +641,7 @@
|
|||||||
"quicksilver": {
|
"quicksilver": {
|
||||||
"version": {
|
"version": {
|
||||||
"from": "1.1.70",
|
"from": "1.1.70",
|
||||||
"do": ""
|
"do": "1.1.91"
|
||||||
},
|
},
|
||||||
"match": "(Enables quicksilver in-app messaging modal\",default:)(!0)",
|
"match": "(Enables quicksilver in-app messaging modal\",default:)(!0)",
|
||||||
"replace": "$1false"
|
"replace": "$1false"
|
||||||
@@ -717,14 +726,6 @@
|
|||||||
"match": "(Enable showing a new and improved device picker UI\",default:)(!1)",
|
"match": "(Enable showing a new and improved device picker UI\",default:)(!1)",
|
||||||
"replace": "$1true"
|
"replace": "$1true"
|
||||||
},
|
},
|
||||||
"devicepickerold": {
|
|
||||||
"version": {
|
|
||||||
"from": "1.1.96",
|
|
||||||
"do": "1.1.97"
|
|
||||||
},
|
|
||||||
"match": "(Enable showing a new and improved device picker UI\",default:)(!0)",
|
|
||||||
"replace": "$1false"
|
|
||||||
},
|
|
||||||
"newhome": {
|
"newhome": {
|
||||||
"version": {
|
"version": {
|
||||||
"from": "1.1.94",
|
"from": "1.1.94",
|
||||||
@@ -771,7 +772,7 @@
|
|||||||
"do": ""
|
"do": ""
|
||||||
},
|
},
|
||||||
"match": "(Enable Your Library X view of the left sidebar\",default:)(!1|!0)",
|
"match": "(Enable Your Library X view of the left sidebar\",default:)(!1|!0)",
|
||||||
"replace": ""
|
"replace": "$1true"
|
||||||
},
|
},
|
||||||
"lyricsenabled": {
|
"lyricsenabled": {
|
||||||
"version": {
|
"version": {
|
||||||
@@ -803,7 +804,7 @@
|
|||||||
"do": ""
|
"do": ""
|
||||||
},
|
},
|
||||||
"match": "(Enable the view on the right sidebar\",default:)(!1|!0)",
|
"match": "(Enable the view on the right sidebar\",default:)(!1|!0)",
|
||||||
"replace": ""
|
"replace": "$1true"
|
||||||
},
|
},
|
||||||
"sidebar-fix": {
|
"sidebar-fix": {
|
||||||
"version": {
|
"version": {
|
||||||
@@ -813,14 +814,6 @@
|
|||||||
"match": "min:320,max:420",
|
"match": "min:320,max:420",
|
||||||
"replace": "min:250,max:400"
|
"replace": "min:250,max:400"
|
||||||
},
|
},
|
||||||
"audiobooks": {
|
|
||||||
"version": {
|
|
||||||
"from": "1.1.74",
|
|
||||||
"do": ""
|
|
||||||
},
|
|
||||||
"match": "(Enable Audiobooks feature on ClientX\",default:)(!1)",
|
|
||||||
"replace": "$1true"
|
|
||||||
},
|
|
||||||
"addingplaylist": {
|
"addingplaylist": {
|
||||||
"version": {
|
"version": {
|
||||||
"from": "1.1.98",
|
"from": "1.1.98",
|
||||||
@@ -893,38 +886,6 @@
|
|||||||
"match": "(Enable a setting to control if followers and following lists are shown on profile\",default:)(!1)",
|
"match": "(Enable a setting to control if followers and following lists are shown on profile\",default:)(!1)",
|
||||||
"replace": "$1true"
|
"replace": "$1true"
|
||||||
},
|
},
|
||||||
"fraud": {
|
|
||||||
"version": {
|
|
||||||
"from": "1.2.3",
|
|
||||||
"do": ""
|
|
||||||
},
|
|
||||||
"match": "(Enable user fraud verification\",default:)(!1|!0)",
|
|
||||||
"replace": "$1false"
|
|
||||||
},
|
|
||||||
"fraud2": {
|
|
||||||
"version": {
|
|
||||||
"from": "1.2.5",
|
|
||||||
"do": ""
|
|
||||||
},
|
|
||||||
"match": "(Enable the IAV component make api requests\",default:)(!1|!0)",
|
|
||||||
"replace": "$1false"
|
|
||||||
},
|
|
||||||
"fraud3": {
|
|
||||||
"version": {
|
|
||||||
"from": "1.2.10",
|
|
||||||
"do": ""
|
|
||||||
},
|
|
||||||
"match": "(Enable user fraud signals\",default:)(!1|!0)",
|
|
||||||
"replace": "$1false"
|
|
||||||
},
|
|
||||||
"hptolocation": {
|
|
||||||
"version": {
|
|
||||||
"from": "1.2.1",
|
|
||||||
"do": ""
|
|
||||||
},
|
|
||||||
"match": "(Enable new permanent location for HPTO iframe to HptoHtml.js\",default:)(!1|!0)",
|
|
||||||
"replace": "$1false"
|
|
||||||
},
|
|
||||||
"attacktitan": {
|
"attacktitan": {
|
||||||
"version": {
|
"version": {
|
||||||
"from": "1.2.6",
|
"from": "1.2.6",
|
||||||
@@ -980,22 +941,6 @@
|
|||||||
},
|
},
|
||||||
"match": "(Enable remote download support through the offline2 system\",default:)(!1)",
|
"match": "(Enable remote download support through the offline2 system\",default:)(!1)",
|
||||||
"replace": "$1true"
|
"replace": "$1true"
|
||||||
},
|
|
||||||
"DesktopMusicLeavebehinds": {
|
|
||||||
"version": {
|
|
||||||
"from": "1.2.10",
|
|
||||||
"do": ""
|
|
||||||
},
|
|
||||||
"match": "(Enable music leavebehinds on eligible playlists for desktop\",default:)(!1|!0)",
|
|
||||||
"replace": "$1false"
|
|
||||||
},
|
|
||||||
"enableEsperantoMigration": {
|
|
||||||
"version": {
|
|
||||||
"from": "1.2.10",
|
|
||||||
"do": ""
|
|
||||||
},
|
|
||||||
"match": "(Enable esperanto Migration for Ad Formats\",default:)(!1|!0)",
|
|
||||||
"replace": "$1false"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user