diff options
author | Diamond <33725716+DiamondMiner88@users.noreply.github.com> | 2022-10-04 07:46:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-04 16:46:21 +0200 |
commit | f1a31a61841adc74c6366eb2a77d74b81dd62b23 (patch) | |
tree | 81dd22fa5e8537751813ed065de455c94e32bf35 /src/plugins | |
parent | 8186fe290e9fd2e577360bcefffe5a11b8e4913e (diff) | |
download | Vencord-f1a31a61841adc74c6366eb2a77d74b81dd62b23.tar.gz Vencord-f1a31a61841adc74c6366eb2a77d74b81dd62b23.tar.bz2 Vencord-f1a31a61841adc74c6366eb2a77d74b81dd62b23.zip |
feat: no blocked messages plugin (#34)
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/noBlockedMessages.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/plugins/noBlockedMessages.ts b/src/plugins/noBlockedMessages.ts new file mode 100644 index 0000000..d1d82bd --- /dev/null +++ b/src/plugins/noBlockedMessages.ts @@ -0,0 +1,19 @@ +import { Devs } from "../utils/constants"; +import definePlugin from "../utils/types"; + +export default definePlugin({ + name: "NoBlockedMessages", + description: "Hides all blocked messages from chat completely.", + authors: [Devs.rushii], + patches: [ + { + find: 'safety_prompt:"DMSpamExperiment",response:"show_redacted_messages"', + replacement: [ + { + match: /collapsedReason;return (?=\w{1,2}.createElement)/, + replace: "collapsedReason; return null;" + } + ] + } + ] +}); |