Vencord/src/plugins/noSystemBadge.ts

24 lines
696 B
TypeScript
Raw Normal View History

2022-10-03 20:36:02 -04:00
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(){},"
}
]
}
]
});