2022-10-04 00:36:02 +00: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],
|
2022-10-16 15:15:15 +00:00
|
|
|
target: "DESKTOP",
|
2022-10-04 00:36:02 +00:00
|
|
|
patches: [
|
|
|
|
{
|
|
|
|
find: "setSystemTrayApplications:function",
|
|
|
|
replacement: [
|
|
|
|
{
|
|
|
|
match: /setBadge:function.+?},/,
|
|
|
|
replace: "setBadge:function(){},"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
match: /setSystemTrayIcon:function.+?},/,
|
|
|
|
replace: "setSystemTrayIcon:function(){},"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
});
|