feat: no system badges plugin (#33)
parent
0a2c637c61
commit
e35393b40c
@ -1,2 +1,5 @@
|
||||
dist
|
||||
node_modules
|
||||
node_modules
|
||||
venboy.exe
|
||||
.vscode
|
||||
.idea
|
||||
|
@ -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(){},"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
Loading…
Reference in new issue