mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 13:23:28 -05:00
feat(plugin): DisableCameras by Joona
This commit is contained in:
parent
569e1734d7
commit
6e2262a5d3
2 changed files with 24 additions and 0 deletions
|
@ -37,6 +37,7 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch
|
|||
- CutePats by thororen
|
||||
- DeadMembers by Kyuuhachi
|
||||
- Demonstration by Samwich
|
||||
- DisableCameras by Joona
|
||||
- DNDWhilePlaying by thororen
|
||||
- DoNotLeak by Perny
|
||||
- DontFilterMe by Samwich
|
||||
|
|
23
src/equicordplugins/disableCameras/index.tsx
Normal file
23
src/equicordplugins/disableCameras/index.tsx
Normal file
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* Vencord, a Discord client mod
|
||||
* Copyright (c) 2024 Vendicated and contributors*
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
import { Devs } from "@utils/constants";
|
||||
import definePlugin from "@utils/types";
|
||||
|
||||
export default definePlugin({
|
||||
name: "DisableCameras",
|
||||
description: "Disables cameras in a call by default",
|
||||
authors: [Devs.Joona],
|
||||
patches: [
|
||||
{
|
||||
find: 'logger.error("Connect called',
|
||||
replacement: {
|
||||
match: /case 12:this.emit\("video",(\i\.user_id).+?;/,
|
||||
replace: '$&findByProps("setDisableLocalVideo").setDisableLocalVideo($1, "DISABLED");'
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
Loading…
Reference in a new issue