mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-06-14 03:16:33 +10:00
fixed scrollbar, added new fullscreen mode
- added parameter -newFullscreenMode to enable new fullscreen mode (experimental) #689 - fixed scrollbar indent - disabled experimental scrollbar #688
This commit is contained in:
@@ -1411,6 +1411,24 @@
|
||||
"fr": "1.2.58",
|
||||
"to": ""
|
||||
}
|
||||
},
|
||||
"ImprovedCinemaMode": {
|
||||
"name": "enableImprovedCinemaMode",
|
||||
"description": "Enable improved cinema mode",
|
||||
"native_description": "Enable improved cinema mode",
|
||||
"version": {
|
||||
"fr": "1.2.50",
|
||||
"to": ""
|
||||
}
|
||||
},
|
||||
"ImprovedCinemaModeCanvas": {
|
||||
"name": "enableImprovedCinemaModeCanvas",
|
||||
"description": "Enable canvas support inside improved cinema mode",
|
||||
"native_description": "Enable canvas support inside improved cinema mode",
|
||||
"version": {
|
||||
"fr": "1.2.56",
|
||||
"to": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"CustomExp": {
|
||||
@@ -1974,6 +1992,13 @@
|
||||
},
|
||||
"add": " #desktop\\.settings\\.streamingQuality>option:nth-child(5) {display:none}"
|
||||
},
|
||||
"fix-scrollbar": {
|
||||
"version": {
|
||||
"fr": "1.1.59",
|
||||
"to": ""
|
||||
},
|
||||
"add": " .main-view-container__scroll-node > .os-scrollbar-vertical {top:0px !important}"
|
||||
},
|
||||
"fix-old-theme": {
|
||||
"version": {
|
||||
"fr": "1.1.74",
|
||||
|
||||
@@ -58,6 +58,9 @@ param
|
||||
[Parameter(HelpMessage = 'Enable top search bar.')]
|
||||
[switch]$topsearchbar,
|
||||
|
||||
[Parameter(HelpMessage = 'Enable new fullscreen mode (Experimental)')]
|
||||
[switch]$newFullscreenMode,
|
||||
|
||||
[Parameter(HelpMessage = 'disable subfeed filter chips on home.')]
|
||||
[switch]$homesub_off,
|
||||
|
||||
@@ -1116,6 +1119,9 @@ function Helper($paramname) {
|
||||
# causes lags in the main menu 1.2.44-1.2.56
|
||||
if ([version]$offline -le [version]'1.2.56.502') { Move-Json -n 'HomeCarousels' -t $Enable -f $Disable }
|
||||
|
||||
# disable new scrollbar
|
||||
Move-Json -n 'NewOverlayScrollbars' -t $Enable -f $Disable
|
||||
|
||||
# temporarily disable collapsing right sidebar
|
||||
Move-Json -n 'PeekNpv' -t $Enable -f $Disable
|
||||
|
||||
@@ -1154,8 +1160,8 @@ function Helper($paramname) {
|
||||
|
||||
if (!($canvasHome)) { Move-Json -n "canvasHome", "canvasHomeAudioPreviews" -t $Enable -f $Disable }
|
||||
|
||||
if (!$newFullscreenMode) { Move-Json -n "ImprovedCinemaMode", "ImprovedCinemaModeCanvas" -t $Enable -f $Disable }
|
||||
|
||||
|
||||
# disable subfeed filter chips on home
|
||||
if ($homesub_off) {
|
||||
Move-Json -n "HomeSubfeeds" -t $Enable -f $Disable
|
||||
@@ -1773,6 +1779,8 @@ If ($test_spa) {
|
||||
if ($global:type -eq "all" -or $global:type -eq "podcast") {
|
||||
$css += $webjson.others.block_subfeeds.add
|
||||
}
|
||||
# scrollbar indent fixes
|
||||
$css += $webjson.others.'fix-scrollbar'.add
|
||||
|
||||
if ($null -ne $css ) { extract -counts 'one' -method 'zip' -name 'xpui.css' -add $css }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user