feat: no blocked messages plugin (#34)
This commit is contained in:
parent
8186fe290e
commit
f1a31a6184
19
src/plugins/noBlockedMessages.ts
Normal file
19
src/plugins/noBlockedMessages.ts
Normal 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;"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
});
|
Loading…
Reference in a new issue