mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-06-20 22:21:09 +10:00
fixed bug with switch
fixed bug with switch opening/closing playlist folders https://github.com/amd64fox/SpotX/issues/29
This commit is contained in:
+3
-3
@@ -431,9 +431,7 @@ if ($test_spa -and $test_js) {
|
|||||||
if (Test-Path $xpui_js_patch) {
|
if (Test-Path $xpui_js_patch) {
|
||||||
Write-Host "Spicetify detected"`n
|
Write-Host "Spicetify detected"`n
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$reader = New-Object -TypeName System.IO.StreamReader -ArgumentList $xpui_js_patch
|
$reader = New-Object -TypeName System.IO.StreamReader -ArgumentList $xpui_js_patch
|
||||||
$xpui_js = $reader.ReadToEnd()
|
$xpui_js = $reader.ReadToEnd()
|
||||||
$reader.Close()
|
$reader.Close()
|
||||||
@@ -564,6 +562,7 @@ If (Test-Path $xpui_spa_patch) {
|
|||||||
|
|
||||||
$xpuiContents_css = $xpuiContents_css `
|
$xpuiContents_css = $xpuiContents_css `
|
||||||
<# Remove RTL #>`
|
<# Remove RTL #>`
|
||||||
|
-replace "}\[dir=ltr\]\s?([.a-zA-Z\d[_]+?,\[dir=ltr\])", '}[dir=str] $1' `
|
||||||
-replace "}\[dir=ltr\]\s?", "} " `
|
-replace "}\[dir=ltr\]\s?", "} " `
|
||||||
-replace "html\[dir=ltr\]", "html" `
|
-replace "html\[dir=ltr\]", "html" `
|
||||||
-replace ",\s?\[dir=rtl\].+?(\{.+?\})", '$1' `
|
-replace ",\s?\[dir=rtl\].+?(\{.+?\})", '$1' `
|
||||||
@@ -576,6 +575,7 @@ If (Test-Path $xpui_spa_patch) {
|
|||||||
-replace "html\[dir=rtl\].+?\{.+?\}", "" `
|
-replace "html\[dir=rtl\].+?\{.+?\}", "" `
|
||||||
-replace "html\[lang=ar\].+?\{.+?\}", "" `
|
-replace "html\[lang=ar\].+?\{.+?\}", "" `
|
||||||
-replace "\[dir=rtl\].+?\{.+?\}", "" `
|
-replace "\[dir=rtl\].+?\{.+?\}", "" `
|
||||||
|
-replace "\[dir=str\]", "[dir=ltr]" `
|
||||||
<# Css minification #>`
|
<# Css minification #>`
|
||||||
-replace "[/]\*([^*]|[\r\n]|(\*([^/]|[\r\n])))*\*[/]", "" `
|
-replace "[/]\*([^*]|[\r\n]|(\*([^/]|[\r\n])))*\*[/]", "" `
|
||||||
-replace "[/][/]#\s.*", "" `
|
-replace "[/][/]#\s.*", "" `
|
||||||
|
|||||||
+3
-1
@@ -702,7 +702,8 @@ If (Test-Path $xpui_spa_patch) {
|
|||||||
|
|
||||||
|
|
||||||
$xpuiContents_css = $xpuiContents_css `
|
$xpuiContents_css = $xpuiContents_css `
|
||||||
<# Remove RTL #>`
|
<# удаление RTL правил #>`
|
||||||
|
-replace "}\[dir=ltr\]\s?([.a-zA-Z\d[_]+?,\[dir=ltr\])", '}[dir=str] $1' `
|
||||||
-replace "}\[dir=ltr\]\s?", "} " `
|
-replace "}\[dir=ltr\]\s?", "} " `
|
||||||
-replace "html\[dir=ltr\]", "html" `
|
-replace "html\[dir=ltr\]", "html" `
|
||||||
-replace ",\s?\[dir=rtl\].+?(\{.+?\})", '$1' `
|
-replace ",\s?\[dir=rtl\].+?(\{.+?\})", '$1' `
|
||||||
@@ -715,6 +716,7 @@ If (Test-Path $xpui_spa_patch) {
|
|||||||
-replace "html\[dir=rtl\].+?\{.+?\}", "" `
|
-replace "html\[dir=rtl\].+?\{.+?\}", "" `
|
||||||
-replace "html\[lang=ar\].+?\{.+?\}", "" `
|
-replace "html\[lang=ar\].+?\{.+?\}", "" `
|
||||||
-replace "\[dir=rtl\].+?\{.+?\}", "" `
|
-replace "\[dir=rtl\].+?\{.+?\}", "" `
|
||||||
|
-replace "\[dir=str\]", "[dir=ltr]" `
|
||||||
<# минификация css #>`
|
<# минификация css #>`
|
||||||
-replace "[/]\*([^*]|[\r\n]|(\*([^/]|[\r\n])))*\*[/]", "" `
|
-replace "[/]\*([^*]|[\r\n]|(\*([^/]|[\r\n])))*\*[/]", "" `
|
||||||
-replace "[/][/]#\s.*", "" `
|
-replace "[/][/]#\s.*", "" `
|
||||||
|
|||||||
Reference in New Issue
Block a user