Anammox: Remove Conflict

This commit is contained in:
thororen1234 2025-09-28 14:05:06 -04:00
parent ec91a6b7c0
commit 86c5cc0986
No known key found for this signature in database

View file

@ -33,12 +33,6 @@ export const settings = definePluginSettings({
description: "Remove gift button",
restartNeeded: true,
},
gif: {
type: OptionType.BOOLEAN,
default: false,
description: "Remove gif and sticker buttons",
restartNeeded: true,
},
emojiList: {
type: OptionType.BOOLEAN,
default: true,
@ -114,15 +108,6 @@ export default definePlugin({
replacement: { match: /&&\i\.push\(\([^&]*?,"gift"\)\)/, replace: "", },
predicate: () => settings.store.gift,
},
{
// Gif and sticker buttons
find: '"sticker")',
replacement: [
{ match: /&&\i\.push\([^&]*?,"gif"\)\)/, replace: "", },
{ match: /&&\i\.push\([^&]*?,"sticker"\)\)/, replace: "", },
],
predicate: () => settings.store.gif,
},
{
// Emoji list
find: "#{intl::EMOJI_PICKER_CREATE_EMOJI_TITLE}),size:",