diff options
author | botato <63275405+botatooo@users.noreply.github.com> | 2022-09-30 22:23:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-01 04:23:41 +0200 |
commit | 967b101af1a36437ea66d4aed575816a098c8009 (patch) | |
tree | 74b2152ab1df558b3d6d66648f6b6b37a9470841 /src/plugins | |
parent | 18b6bce160fd43ca4b42a0d0251e539e41b96380 (diff) | |
download | Vencord-967b101af1a36437ea66d4aed575816a098c8009.tar.gz Vencord-967b101af1a36437ea66d4aed575816a098c8009.tar.bz2 Vencord-967b101af1a36437ea66d4aed575816a098c8009.zip |
feat(plugin): iLoveSpam (#19)
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/iLoveSpam.ts | 23 | ||||
-rw-r--r-- | src/plugins/plainFolderIcon.ts (renamed from src/plugins/folderSvgIcon.ts) | 8 |
2 files changed, 26 insertions, 5 deletions
diff --git a/src/plugins/iLoveSpam.ts b/src/plugins/iLoveSpam.ts new file mode 100644 index 0000000..d035372 --- /dev/null +++ b/src/plugins/iLoveSpam.ts @@ -0,0 +1,23 @@ +import { Devs } from "../utils/constants"; +import definePlugin from "../utils/types"; + +export default definePlugin({ + name: "iLoveSpam", + description: "Do not hide messages from 'likely spammers'", + authors: [ + Devs.botato, + { + name: "Iryis", + id: 118437263754395652n, + }, + ], + patches: [ + { + find: "),{hasFlag:", + replacement: { + match: /(if\((.{1,2})<=1<<30\)return)/, + replace: "if($2===(1<<20)){return false};$1", + }, + }, + ], +}); diff --git a/src/plugins/folderSvgIcon.ts b/src/plugins/plainFolderIcon.ts index 208efaa..c04c78b 100644 --- a/src/plugins/folderSvgIcon.ts +++ b/src/plugins/plainFolderIcon.ts @@ -1,12 +1,10 @@ +import { Devs } from "../utils/constants"; import definePlugin from "../utils/types"; export default definePlugin({ - name: "Folder SVG Icon", + name: "PlainFolderIcon", description: "Doesn't show the small guild icons in folders", - authors: [{ - name: "botato", - id: 440990343899643943n - }], + authors: [Devs.botato], patches: [{ find: "().expandedFolderIconWrapper", replacement: [{ |