feat(Anammox): Update

* Patches Fix

* Update Annamox

---------

Co-authored-by: thororen <78185467+thororen1234@users.noreply.github.com>
This commit is contained in:
KrystalSkull💖 2024-05-18 14:48:33 -04:00 committed by GitHub
parent 6de6ad49ed
commit a6dd7fb963
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -73,7 +73,7 @@ export default definePlugin({
{ // Settings, sidebar { // Settings, sidebar
find: "Messages.BILLING_SETTINGS", find: "Messages.BILLING_SETTINGS",
replacement: { replacement: {
match: /\{section:\i\.SectionTypes\.HEADER,label:\i\.default\.Messages\.BILLING_SETTINGS\},.*?\{section:\i\.SectionTypes\.DIVIDER\},/, match: /\{header:[^:,]*\.Messages.BILLING_SETTINGS,[^}]*\]},/,
replace: "/*$&*/" replace: "/*$&*/"
}, },
predicate: () => settings.store.billing, predicate: () => settings.store.billing,
@ -95,10 +95,10 @@ export default definePlugin({
predicate: () => settings.store.emojiList, predicate: () => settings.store.emojiList,
}, },
{ // Emoji category list { // Emoji category list
find: ".Messages.EMOJI_PICKER_SCROLL_TO_UNICODE_A11Y_LABEL", find: "useEmojiCategories:function()",
replacement: { replacement: {
match: /(\w+)=\(0,\w+.useCategoryNitroLockedStates\)\(\w+,\w+,(\w+)\)/, match: /(?<=(\i)\.unshift\((\i)\):)(?=\1\.push\(\2\))/,
replace: "$&,__98=($2=$2.filter((_,$2)=>!$1[$2]))" replace: "$2.isNitroLocked||"
}, },
predicate: () => settings.store.emojiList, predicate: () => settings.store.emojiList,
} }