arrpc: support OBS auto streamer mode (#822)

Co-authored-by: Vendicated <vendicated@riseup.net>
This commit is contained in:
Cookie
2025-02-05 14:12:38 -05:00
committed by GitHub
parent 56442ae1e9
commit 7b5e1ed4da
6 changed files with 61 additions and 12 deletions

View File

@@ -12,4 +12,5 @@ import "./hideVenmicInput";
import "./screenShareFixes";
import "./spellCheck";
import "./windowsTitleBar";
import "./streamerMode";
import "./nativeFocus";

View File

@@ -0,0 +1,21 @@
/*
* SPDX-License-Identifier: GPL-3.0
* Vesktop, a desktop app aiming to give you a snappier Discord Experience
* Copyright (c) 2023 Vendicated and Vencord contributors
*/
import { addPatch } from "./shared";
addPatch({
patches: [
{
find: ".STREAMER_MODE_ENABLE,",
replacement: {
// remove if (platformEmbedded) check from streamer mode toggle
// eslint-disable-next-line no-useless-escape
match: /if\(\i\.\i\)(?=return.{0,200}?"autoToggle")/g,
replace: ""
}
}
]
});