Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
Patches Fix for Anammox (#84)
Browse files Browse the repository at this point in the history
* Patches Fix for Anammox

* Add copyright header back

---------

Co-authored-by: nyx <[email protected]>
  • Loading branch information
KrystalSkullOfficial and verticalsync authored May 18, 2024
1 parent 1bbf3d4 commit de9fe49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/suncordplugins/Anammox/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default definePlugin({
{ // Settings, sidebar
find: "Messages.BILLING_SETTINGS",
replacement: {
match: /\{section:\i\.SectionTypes\.HEADER,label:\i\.default\.Messages\.BILLING_SETTINGS\},.*?\{section:\i\.SectionTypes\.DIVIDER\},/,
match: /\{header:[^:,]*\.Messages.BILLING_SETTINGS,[^}]*\]},/,
replace: "/*$&*/"
},
predicate: () => settings.store.billing,
Expand All @@ -95,10 +95,10 @@ export default definePlugin({
predicate: () => settings.store.emojiList,
},
{ // Emoji category list
find: ".Messages.EMOJI_PICKER_SCROLL_TO_UNICODE_A11Y_LABEL",
find: "useEmojiCategories:function()",
replacement: {
match: /(\w+)=\(0,\w+.useCategoryNitroLockedStates\)\(\w+,\w+,(\w+)\)/,
replace: "$&,__98=($2=$2.filter((_,$2)=>!$1[$2]))"
match: /(?<=(\i)\.unshift\((\i)\):)(?=\1\.push\(\2\))/,
replace: "$2.isNitroLocked||"
},
predicate: () => settings.store.emojiList,
}
Expand Down

0 comments on commit de9fe49

Please sign in to comment.