Plugin

iLoveSpam

Do not hide messages from 'likely spammers'

Utility Chat
index.ts
Download

Source

src/plugins/iLoveSpam/index.ts
1/*
2 * FiveCord — a Discord client mod
3 * Copyright (c) 2025 FiveCord
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
7import { Devs } from "@utils/constants";
8import definePlugin from "@utils/types";
9
10export default definePlugin({
11 name: "iLoveSpam",
12 description: "Do not hide messages from 'likely spammers'",
13 tags: ["Utility", "Chat"],
14 authors: [Devs.botato, Devs.Nyako],
15 patches: [
16 {
17 find: "hasFlag:{writable",
18 replacement: {
19 match: /if\((\i)<=(?:0x40000000|(?:1<<30|1073741824))\)return/,
20 replace: "if($1===(1<<20))return false;$&",
21 },
22 },
23 ],
24});
25