Plugin
ColorSighted
Removes the colorblind-friendly icons from statuses, just like 2015-2017 Discord
1
import { Devs } from "@utils/constants";2
import definePlugin from "@utils/types";3
4
export default definePlugin({5
name: "ColorSighted",6
description: "Removes the colorblind-friendly icons from statuses, just like 2015-2017 Discord",7
authors: [Devs.lewisakura],8
tags: ["Appearance", "Accessibility"],9
patches: [10
{11
find: "Masks.STATUS_ONLINE",12
replacement: {13
match: /Masks\.STATUS_(?:IDLE|DND|STREAMING|OFFLINE)/g,14
replace: "Masks.STATUS_ONLINE"15
}16
},17
{18
find: ".AVATAR_STATUS_MOBILE_16;",19
replacement: {20
match: /(fromIsMobile:\i=!0,.+?)status:(\i)/,21
// Rename field to force it to always use "online"22
replace: 039;$1status_$:$2="online"039;23
}24
}25
]26
});27