Plugin

iLoveSpam

Do not hide messages from 'likely spammers'

Utility Chat
index.ts
Download

Source

src/plugins/iLoveSpam/index.ts
1import { Devs } from "@utils/constants";
2import definePlugin from "@utils/types";
3
4export default definePlugin({
5 name: "iLoveSpam",
6 description: "Do not hide messages from 'likely spammers'",
7 tags: ["Utility", "Chat"],
8 authors: [Devs.botato, Devs.Nyako],
9 patches: [
10 {
11 find: "hasFlag:{writable",
12 replacement: {
13 match: /if\((\i)<=(?:0x40000000|(?:1<<30|1073741824))\)return/,
14 replace: "if($1===(1<<20))return false;$&",
15 },
16 },
17 ],
18});
19