Improve patches

This commit is contained in:
vappster 2024-06-07 20:56:00 +02:00 committed by GitHub
parent 7e16a1f954
commit 4e17dfcc65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,8 +27,8 @@ export default definePlugin({
{ //picture-in-picture player patch { //picture-in-picture player patch
find: "streamerPaused()", find: "streamerPaused()",
replacement: { replacement: {
match: /return (.{0,120})&&!.{1,2}}/, match: /return null![^}]+/,
replace: "return $1&&false}" replace: "return false"
} }
}, },
{ //in-call player patch #1 (keep stream playing) { //in-call player patch #1 (keep stream playing)
@ -41,8 +41,8 @@ export default definePlugin({
{ //in-call player patch #2 (disable "your stream is still running" text overlay) { //in-call player patch #2 (disable "your stream is still running" text overlay)
find: "let{mainText:", find: "let{mainText:",
replacement: { replacement: {
match: /let{.{0,120};/, match: /let{[^;]+/,
replace: "return;" replace: "return"
} }
} }
], ],