From e35393b40cdf146644d7a136be422a9a280f56be Mon Sep 17 00:00:00 2001 From: Diamond <33725716+DiamondMiner88@users.noreply.github.com> Date: Mon, 3 Oct 2022 17:36:02 -0700 Subject: feat: no system badges plugin (#33) --- src/plugins/noSystemBadge.ts | 23 +++++++++++++++++++++++ src/utils/constants.ts | 4 ++++ 2 files changed, 27 insertions(+) create mode 100644 src/plugins/noSystemBadge.ts (limited to 'src') 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(){}," + } + ] + } + ] +}); diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 9f7374d..fe66218 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -26,5 +26,9 @@ export const Devs = Object.freeze({ obscurity: { name: "obscurity", id: 336678828233588736n, + }, + rushii: { + name: "rushii", + id: 295190422244950017n } }); -- cgit