feat: no blocked messages plugin (#34)

This commit is contained in:
Diamond 2022-10-04 07:46:21 -07:00 committed by GitHub
parent 8186fe290e
commit f1a31a6184
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;"
}
]
}
]
});