diff --git a/.gitignore b/.gitignore index db4c6d9b..880eb620 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ dist -node_modules \ No newline at end of file +node_modules +venboy.exe +.vscode +.idea diff --git a/src/plugins/noSystemBadge.ts b/src/plugins/noSystemBadge.ts new file mode 100644 index 00000000..25f873b6 --- /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 9f7374d0..fe66218a 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 } });