Vencord/src/plugins/noSystemBadge.ts
2022-10-04 02:36:02 +02:00

24 lines
696 B
TypeScript

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(){},"
}
]
}
]
});