Skip to content

Commit

Permalink
[removeChannelEmojis] Fix patch
Browse files Browse the repository at this point in the history
  • Loading branch information
lexisother committed Oct 28, 2023
1 parent b1d4903 commit 51b307d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 17 deletions.
2 changes: 1 addition & 1 deletion plugins/removeChannelEmojis/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"discordID": "952185386350829688",
"github": "lexisother"
},
"version": "1.3.2",
"version": "1.3.3",
"updater": {
"type": "store",
"id": "dev.alyxia.removeChannelEmojis"
Expand Down
41 changes: 25 additions & 16 deletions plugins/removeChannelEmojis/plaintextPatches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,32 @@ const __a_require = (e: string): string =>
`window.replugged.plugins.getExports("dev.alyxia.removeChannelEmojis").${e}`;

export default [
// {
// find: /iconEmoji/,
// replacements: [
// {
// match: /return\{iconEmoji:.{1,2}.*?\}/,
// replace: (_) => `return{iconEmoji:null}`,
// },
// ],
// },
// {
// find: /\.emojiColorFill/,
// replacements: [
// {
// match: /className:.{1,2}\(\)\.emojiColorFill/,
// replace: (_) => `className:''`,
// },
// ],
// },
{
find: /iconEmoji/,
replacements: [
{
match: /return\{iconEmoji:.{1,2}.*?\}/,
replace: (_) => `return{iconEmoji:null}`,
},
],
},
{
find: /\.emojiColorFill/,
replacements: [
{
match: /className:.{1,2}\(\)\.emojiColorFill/,
replace: (_) => `className:''`,
},
],
find: {
match: /useChannelEmojiAndColor:/,
},
replace: {
match: /return{emoji:(.*?),color:(.*?)}/g,
replacement: (_) => `return{emoji:null,color:null}`,
},
},
...(pSettings.get("unicode")
? ([
Expand Down

0 comments on commit 51b307d

Please sign in to comment.