aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorDiamond <33725716+DiamondMiner88@users.noreply.github.com>2022-10-03 17:36:02 -0700
committerGitHub <noreply@github.com>2022-10-04 02:36:02 +0200
commite35393b40cdf146644d7a136be422a9a280f56be (patch)
tree81282697cfb120b7b11cc2c3bddffa0394226e4c /src/plugins
parent0a2c637c61e0d954c10de73e095742cff9760736 (diff)
downloadVencord-e35393b40cdf146644d7a136be422a9a280f56be.tar.gz
Vencord-e35393b40cdf146644d7a136be422a9a280f56be.tar.bz2
Vencord-e35393b40cdf146644d7a136be422a9a280f56be.zip
feat: no system badges plugin (#33)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/noSystemBadge.ts23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/plugins/noSystemBadge.ts b/src/plugins/noSystemBadge.ts
new file mode 100644
index 0000000..25f873b
--- /dev/null
+++ b/src/plugins/noSystemBadge.ts
@@ -0,0 +1,23 @@
+import { Devs } from "../utils/constants";
+import definePlugin from "../utils/types";
+
+export default definePlugin({
+ name: "NoSystemBadge",
+ description: "Disables the taskbar and system tray unread count badge.",
+ authors: [Devs.rushii],
+ patches: [
+ {
+ find: "setSystemTrayApplications:function",
+ replacement: [
+ {
+ match: /setBadge:function.+?},/,
+ replace: "setBadge:function(){},"
+ },
+ {
+ match: /setSystemTrayIcon:function.+?},/,
+ replace: "setSystemTrayIcon:function(){},"
+ }
+ ]
+ }
+ ]
+});