mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-24 15:35:11 +00:00
Improve patches
This commit is contained in:
parent
7e16a1f954
commit
4e17dfcc65
1 changed files with 4 additions and 4 deletions
|
@ -27,8 +27,8 @@ export default definePlugin({
|
|||
{ //picture-in-picture player patch
|
||||
find: "streamerPaused()",
|
||||
replacement: {
|
||||
match: /return (.{0,120})&&!.{1,2}}/,
|
||||
replace: "return $1&&false}"
|
||||
match: /return null![^}]+/,
|
||||
replace: "return false"
|
||||
}
|
||||
},
|
||||
{ //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)
|
||||
find: "let{mainText:",
|
||||
replacement: {
|
||||
match: /let{.{0,120};/,
|
||||
replace: "return;"
|
||||
match: /let{[^;]+/,
|
||||
replace: "return"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
Loading…
Add table
Reference in a new issue