mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-06-20 22:21:09 +10:00
added history for goofy
This commit is contained in:
+24
@@ -90,6 +90,12 @@ param
|
|||||||
[Parameter(HelpMessage = 'Static color for lyrics.')]
|
[Parameter(HelpMessage = 'Static color for lyrics.')]
|
||||||
[int16]$lyrics_stat,
|
[int16]$lyrics_stat,
|
||||||
|
|
||||||
|
[Parameter(HelpMessage = 'Accumulation of track listening history with Goofy.')]
|
||||||
|
[string]$urlform_goofy = $null,
|
||||||
|
|
||||||
|
[Parameter(HelpMessage = 'Accumulation of track listening history with Goofy.')]
|
||||||
|
[string]$idbox_goofy = $null,
|
||||||
|
|
||||||
[Parameter(HelpMessage = 'Error log ru string.')]
|
[Parameter(HelpMessage = 'Error log ru string.')]
|
||||||
[switch]$err_ru,
|
[switch]$err_ru,
|
||||||
|
|
||||||
@@ -1069,6 +1075,14 @@ function Helper($paramname) {
|
|||||||
$contents = "collaboration"
|
$contents = "collaboration"
|
||||||
$json = $webjson.others
|
$json = $webjson.others
|
||||||
}
|
}
|
||||||
|
"Goofy-History" {
|
||||||
|
# Accumulation of track listening history with Goofy
|
||||||
|
$name = "patches.json.others."
|
||||||
|
$n = "xpui.js"
|
||||||
|
$contents = "goofyhistory"
|
||||||
|
$webjson.others.$contents.replace = "`$1 const urlForm=" + '"' + $urlform_goofy + '"' + ";const idBox=" + '"' + $idbox_goofy + '"' + $webjson.others.$contents.replace
|
||||||
|
$json = $webjson.others
|
||||||
|
}
|
||||||
"ExpFeature" {
|
"ExpFeature" {
|
||||||
# Experimental Feature Standart
|
# Experimental Feature Standart
|
||||||
$rem = $webjson.exp.psobject.properties
|
$rem = $webjson.exp.psobject.properties
|
||||||
@@ -1326,6 +1340,11 @@ if (Test-Path $xpui_js_patch) {
|
|||||||
if ($offline -ge "1.1.98.683") { $js = 'xpui.js' }
|
if ($offline -ge "1.1.98.683") { $js = 'xpui.js' }
|
||||||
extract -counts 'one' -method 'nonezip' -name $js -helper 'OffAdSections'
|
extract -counts 'one' -method 'nonezip' -name $js -helper 'OffAdSections'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Accumulation of track listening history with Goofy
|
||||||
|
if ($urlform_goofy -and $idbox_goofy -and $offline -ge "1.1.90.859") {
|
||||||
|
extract -counts 'one' -method 'nonezip' -name 'xpui.js' -helper 'Goofy-History'
|
||||||
|
}
|
||||||
|
|
||||||
# Static color for lyrics
|
# Static color for lyrics
|
||||||
if ($lyrics_stat) {
|
if ($lyrics_stat) {
|
||||||
@@ -1449,6 +1468,11 @@ If (Test-Path $xpui_spa_patch) {
|
|||||||
extract -counts 'one' -method 'zip' -name $js -helper 'OffAdSections'
|
extract -counts 'one' -method 'zip' -name $js -helper 'OffAdSections'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Accumulation of track listening history with Goofy
|
||||||
|
if ($urlform_goofy -and $idbox_goofy -and $offline -ge "1.1.90.859") {
|
||||||
|
extract -counts 'one' -method 'zip' -name 'xpui.js' -helper 'Goofy-History'
|
||||||
|
}
|
||||||
|
|
||||||
# Hide Collaborators icon
|
# Hide Collaborators icon
|
||||||
if (!($hide_col_icon_off) -and !($exp_spotify)) {
|
if (!($hide_col_icon_off) -and !($exp_spotify)) {
|
||||||
extract -counts 'one' -method 'zip' -name 'xpui-routes-playlist.js' -helper 'Collaborators'
|
extract -counts 'one' -method 'zip' -name 'xpui-routes-playlist.js' -helper 'Collaborators'
|
||||||
|
|||||||
Reference in New Issue
Block a user