mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-06-21 14:40:55 +10:00
Update
- backward compatibility of patches - added the parameter -devtools to activate the developer mode
This commit is contained in:
@@ -1289,15 +1289,15 @@
|
|||||||
"to": ""
|
"to": ""
|
||||||
},
|
},
|
||||||
"match": [
|
"match": [
|
||||||
"(onSelected:).(=>{..\"app.enable.developer.mode.,)..}",
|
"(onSelected:).{3,14}({..\"app.enable.developer.mode.,).\\)}",
|
||||||
"(.)\\){(this._cosmos=.,this._product_state)",
|
"(.)\\){((.{5,20}?|)this._cosmos=.,this._product_state)",
|
||||||
"(..\\(.\\))(\\?(..createElement|\\(.{1,7}jsxs\\))\\(.{1,3},{filterMatchQuery:.{2,15}\\(\"settings.employee\"\\))",
|
"(..\\(.\\))(\\?(..createElement|\\(.{1,7}jsxs\\))\\(.{1,3},{filterMatchQuery:.{2,15}\\(\"settings.employee\"\\))",
|
||||||
"(\"desktop.settings.language-override\".+?)(\\w\\.\\w*\\(..,null\\),|\\w\\.jsx\\)\\(..,\\{}\\),\\(\\d,)",
|
"(\"desktop.settings.language-override\".+?)(\\w\\.\\w*\\(..,null\\),|\\w\\.jsx\\)\\(..,\\{}\\),\\(\\d,)",
|
||||||
"(\"Debug Window\")(.*?\"Locales\")",
|
"(\"Debug Window\")(.*?\"Locales\")",
|
||||||
"desktop.settings.language-override"
|
"desktop.settings.language-override"
|
||||||
],
|
],
|
||||||
"replace": [
|
"replace": [
|
||||||
"$1(check)$2check);localStorage.setItem('dev-tools',check);Spotx.ProductState.putOverridesValues({pairs:{'com.spotify.madprops.use.ucs.product.state':check?'1':'0','employee':check?'1':'0'}});setTimeout(()=>{window.sendCosmosRequest({ request:JSON.stringify({method:'POST',uri:'sp://desktop/v1/restart'})})},500);}",
|
"$1(check)=>$2check);localStorage.setItem('dev-tools',check);Spotx.ProductState.putOverridesValues({pairs:{'com.spotify.madprops.use.ucs.product.state':check?'1':'0','employee':check?'1':'0'}});setTimeout(()=>{window.sendCosmosRequest({ request:JSON.stringify({method:'POST',uri:'sp://desktop/v1/restart'})})},500);}",
|
||||||
"$1){window.Spotx={ProductState:$1};if(localStorage.getItem('dev-tools')==='true'){$1.putOverridesValues({pairs:{'com.spotify.madprops.use.ucs.product.state':'1','employee': '1'}})};$2",
|
"$1){window.Spotx={ProductState:$1};if(localStorage.getItem('dev-tools')==='true'){$1.putOverridesValues({pairs:{'com.spotify.madprops.use.ucs.product.state':'1','employee': '1'}})};$2",
|
||||||
"true$2",
|
"true$2",
|
||||||
"$1",
|
"$1",
|
||||||
@@ -1318,7 +1318,7 @@
|
|||||||
"fr": "1.1.70",
|
"fr": "1.1.70",
|
||||||
"to": ""
|
"to": ""
|
||||||
},
|
},
|
||||||
"match": "(isPremium:).(.{20,40}?isHptoHidden:).",
|
"match": "(ADS_PREMIUM,isPremium:).(.{20,60}?isHptoHidden:).",
|
||||||
"replace": "$1true$2true"
|
"replace": "$1true$2true"
|
||||||
},
|
},
|
||||||
"sentry": {
|
"sentry": {
|
||||||
|
|||||||
@@ -5,6 +5,10 @@ param
|
|||||||
[Alias("v")]
|
[Alias("v")]
|
||||||
[string]$version,
|
[string]$version,
|
||||||
|
|
||||||
|
[Parameter(HelpMessage = "Developer mode activation.")]
|
||||||
|
[Alias("dev")]
|
||||||
|
[switch]$devtools,
|
||||||
|
|
||||||
[Parameter(HelpMessage = 'Hiding podcasts/episodes/audiobooks from homepage.')]
|
[Parameter(HelpMessage = 'Hiding podcasts/episodes/audiobooks from homepage.')]
|
||||||
[switch]$podcasts_off,
|
[switch]$podcasts_off,
|
||||||
|
|
||||||
@@ -1222,6 +1226,8 @@ function Helper($paramname) {
|
|||||||
|
|
||||||
$VarJs = $webjson.VariousJs
|
$VarJs = $webjson.VariousJs
|
||||||
|
|
||||||
|
if (!($devtools)) {Remove-Json -j $VarJs -p "dev-tools"}
|
||||||
|
|
||||||
if ($urlform_goofy -and $idbox_goofy) {
|
if ($urlform_goofy -and $idbox_goofy) {
|
||||||
$webjson.VariousJs.goofyhistory.replace = "`$1 const urlForm=" + '"' + $urlform_goofy + '"' + ";const idBox=" + '"' + $idbox_goofy + '"' + $webjson.VariousJs.goofyhistory.replace
|
$webjson.VariousJs.goofyhistory.replace = "`$1 const urlForm=" + '"' + $urlform_goofy + '"' + ";const idBox=" + '"' + $idbox_goofy + '"' + $webjson.VariousJs.goofyhistory.replace
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user