mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-06-20 22:21:09 +10:00
connect unlock test
- connect unlock test for 1.1.91
This commit is contained in:
+11
@@ -72,6 +72,9 @@ param
|
|||||||
[Parameter(HelpMessage = 'Enabled the new home structure and navigation.')]
|
[Parameter(HelpMessage = 'Enabled the new home structure and navigation.')]
|
||||||
[switch]$enablenavalt,
|
[switch]$enablenavalt,
|
||||||
|
|
||||||
|
[Parameter(HelpMessage = 'Connect unlock test.')]
|
||||||
|
[switch]$testconnect,
|
||||||
|
|
||||||
[Parameter(HelpMessage = 'Select the desired language to use for installation. Default is the detected system language.')]
|
[Parameter(HelpMessage = 'Select the desired language to use for installation. Default is the detected system language.')]
|
||||||
[Alias('l')]
|
[Alias('l')]
|
||||||
[string]$Language
|
[string]$Language
|
||||||
@@ -990,6 +993,14 @@ function Helper($paramname) {
|
|||||||
EmptyBlockAd = 'adsEnabled:!0', 'adsEnabled:!1' # Removing an empty block
|
EmptyBlockAd = 'adsEnabled:!0', 'adsEnabled:!1' # Removing an empty block
|
||||||
FullScreenAd = '(return|.=.=>)"free"===(.+?)(return|.=.=>)"premium"===', '$1"premium"===$2$3"free"===' # Fullscreen act., removing upgrade menu, button
|
FullScreenAd = '(return|.=.=>)"free"===(.+?)(return|.=.=>)"premium"===', '$1"premium"===$2$3"free"===' # Fullscreen act., removing upgrade menu, button
|
||||||
PlaylistSponsorsOff = 'allSponsorships' , '' # Disabling a playlist sponsor
|
PlaylistSponsorsOff = 'allSponsorships' , '' # Disabling a playlist sponsor
|
||||||
|
ConnectUnlock = ' connect-device-list-item--disabled' , '' # Connect unlock test for 1.1.91
|
||||||
|
ConnectUnlock2 = 'connect-picker.unavailable-to-control' , 'spotify-connect'
|
||||||
|
ConnectUnlock3 = '(className:.,disabled:)(..)' , '$1false'
|
||||||
|
ConnectUnlock4 = 'return (..isDisabled)(\?..createElement\(..,)' , 'return false$2'
|
||||||
|
}
|
||||||
|
if (!($testconnect)) {
|
||||||
|
$exp_features.Remove('ConnectUnlock'), $exp_features.Remove('ConnectUnlock2'),
|
||||||
|
$exp_features.Remove('ConnectUnlock3'), $exp_features.Remove('ConnectUnlock4')
|
||||||
}
|
}
|
||||||
$n = ($lang).NoVariable2
|
$n = ($lang).NoVariable2
|
||||||
$contents = $offadson_fullscreen
|
$contents = $offadson_fullscreen
|
||||||
|
|||||||
Reference in New Issue
Block a user