From 95f9e16e249e25c48fd9428a25f46c6ee23251b5 Mon Sep 17 00:00:00 2001 From: Kylie C <52550063+Covkie@users.noreply.github.com> Date: Sun, 28 Jul 2024 16:34:09 -0400 Subject: [PATCH] Report Vesktop as a desktop client Adds a patch to show Vesktop as a desktop client for users of Platformindicators. Vesktop aims to be a Discord desktop replacement with all the usual desktop features. Unlike the web(which Vesktop currently reports as) version that can run on different platforms, Vesktop is only for desktops. --- src/renderer/patches/index.ts | 1 + src/renderer/patches/reportAsClient.ts | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 src/renderer/patches/reportAsClient.ts diff --git a/src/renderer/patches/index.ts b/src/renderer/patches/index.ts index aabff3e..a08f1f1 100644 --- a/src/renderer/patches/index.ts +++ b/src/renderer/patches/index.ts @@ -12,3 +12,4 @@ import "./hideVenmicInput"; import "./screenShareFixes"; import "./spellCheck"; import "./windowsTitleBar"; +import "./reportAsClient"; diff --git a/src/renderer/patches/reportAsClient.ts b/src/renderer/patches/reportAsClient.ts new file mode 100644 index 0000000..d068ed2 --- /dev/null +++ b/src/renderer/patches/reportAsClient.ts @@ -0,0 +1,19 @@ +/* + * 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: "_doIdentify(){", + replacement: { + match: /(let c=\{.*properties:)(l)/, + replace: '$1{...$2, browser: "Discord Client"}' + } + } + ] +});