mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-19 05:43:35 -05:00
Fixes
This commit is contained in:
parent
3e52910e9b
commit
59c0b604a5
2 changed files with 2 additions and 24 deletions
|
@ -27,12 +27,6 @@ export const settings = definePluginSettings({
|
||||||
description: "Remove gift button",
|
description: "Remove gift button",
|
||||||
restartNeeded: true,
|
restartNeeded: true,
|
||||||
},
|
},
|
||||||
emojiList: {
|
|
||||||
type: OptionType.BOOLEAN,
|
|
||||||
default: true,
|
|
||||||
description: "Remove unavailable categories from the emoji picker",
|
|
||||||
restartNeeded: true,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
|
@ -85,22 +79,6 @@ export default definePlugin({
|
||||||
replace: "return null;",
|
replace: "return null;",
|
||||||
},
|
},
|
||||||
predicate: () => settings.store.gift,
|
predicate: () => settings.store.gift,
|
||||||
},
|
|
||||||
{ // Emoji list
|
|
||||||
find: /\.filter\(\i=>\i\.\i\i\.getEmojiUnavailableReason/,
|
|
||||||
replacement: {
|
|
||||||
match: /(\w+)=!\w+&&\w+.\i.isEmojiCategoryNitroLocked\(\{[^}]*\}\);/,
|
|
||||||
replace: "$&$1||"
|
|
||||||
},
|
|
||||||
predicate: () => settings.store.emojiList,
|
|
||||||
},
|
|
||||||
{ // Emoji category list
|
|
||||||
find: "useEmojiCategories:function()",
|
|
||||||
replacement: {
|
|
||||||
match: /(?<=(\i)\.unshift\((\i)\):)(?=\1\.push\(\2\))/,
|
|
||||||
replace: "$2.isNitroLocked||"
|
|
||||||
},
|
|
||||||
predicate: () => settings.store.emojiList,
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
|
@ -62,8 +62,8 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
find: "fetchRelationships(){",
|
find: "fetchRelationships(){",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /\.then\((\i)=>(\i\.\i\.)dispatch\({type:"LOAD_RELATIONSHIPS_SUCCESS",relationships:(\i\.body)}\)/,
|
match: /\.then\((\i)=>(\i\.\i)\.dispatch\({type:"LOAD_RELATIONSHIPS_SUCCESS",relationships:(\i\.body)}\)/,
|
||||||
replace: ".then($1=>{$2dispatch({type:\"LOAD_RELATIONSHIPS_SUCCESS\",relationships:$3}); $self.getContacts($3)}"
|
replace: ".then($1=>{$2.dispatch({type:\"LOAD_RELATIONSHIPS_SUCCESS\",relationships:$3}); $self.getContacts($3)}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue