mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-06-20 22:21:09 +10:00
Update
- backward compatibility of patches - added the parameter -devtools to activate the developer mode
This commit is contained in:
@@ -5,6 +5,10 @@ param
|
||||
[Alias("v")]
|
||||
[string]$version,
|
||||
|
||||
[Parameter(HelpMessage = "Developer mode activation.")]
|
||||
[Alias("dev")]
|
||||
[switch]$devtools,
|
||||
|
||||
[Parameter(HelpMessage = 'Hiding podcasts/episodes/audiobooks from homepage.')]
|
||||
[switch]$podcasts_off,
|
||||
|
||||
@@ -1222,6 +1226,8 @@ function Helper($paramname) {
|
||||
|
||||
$VarJs = $webjson.VariousJs
|
||||
|
||||
if (!($devtools)) {Remove-Json -j $VarJs -p "dev-tools"}
|
||||
|
||||
if ($urlform_goofy -and $idbox_goofy) {
|
||||
$webjson.VariousJs.goofyhistory.replace = "`$1 const urlForm=" + '"' + $urlform_goofy + '"' + ";const idBox=" + '"' + $idbox_goofy + '"' + $webjson.VariousJs.goofyhistory.replace
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user