diff --git a/README.md b/README.md index 792f9434..38347364 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch ### Extra included plugins
-151 additional plugins +152 additional plugins ### All Platforms - AllCallTimers by MaxHerbold & D3SOX @@ -70,6 +70,7 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch - GrammarFix by S€th - HideChatButtons by iamme - HideMessage by Hanzy +- HideScreenShare by thororen - HideServers by bepvte - HolyNotes by Wolfie - HomeTyping by Samwich diff --git a/src/equicordplugins/glide/index.tsx b/src/equicordplugins/glide/index.tsx index 2007c730..0201e091 100644 --- a/src/equicordplugins/glide/index.tsx +++ b/src/equicordplugins/glide/index.tsx @@ -248,7 +248,7 @@ function injectCSS() { const fontName = parseFontContent(); const theCSS = getCSS(fontName); - let elementToRemove = document.getElementById("GlideStyleInjection"); + const elementToRemove = document.getElementById("GlideStyleInjection"); if (elementToRemove) { elementToRemove.remove(); } diff --git a/src/equicordplugins/hideScreenShare/index.ts b/src/equicordplugins/hideScreenShare/index.ts new file mode 100644 index 00000000..962ee0e4 --- /dev/null +++ b/src/equicordplugins/hideScreenShare/index.ts @@ -0,0 +1,35 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + +import { EquicordDevs } from "@utils/constants"; +import definePlugin from "@utils/types"; + +export default definePlugin({ + name: "HideScreenShare", + description: "Hide your screen share by default", + authors: [EquicordDevs.thororen], + patches: [ + { + find: '"self-stream-hide"', + replacement: { + match: /return \i?(.*?onConfirm:\(\)=>(\i\(!\i\)))/, + replace: "return $2$1" + } + } + ], +});