mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 21:33:35 -05:00
Fix Our Broken Patches
This commit is contained in:
parent
cebb70b9ba
commit
9ac31fa936
2 changed files with 5 additions and 5 deletions
|
@ -87,7 +87,7 @@ export default definePlugin({
|
||||||
{ // Gift button
|
{ // Gift button
|
||||||
find: 'Messages.PREMIUM_GIFT_BUTTON_LABEL,"aria-haspopup":"dialog",onClick:',
|
find: 'Messages.PREMIUM_GIFT_BUTTON_LABEL,"aria-haspopup":"dialog",onClick:',
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /if\(\w+\)return null;/,
|
match: /if\(\i\)return null;/,
|
||||||
replace: "return null;",
|
replace: "return null;",
|
||||||
},
|
},
|
||||||
predicate: () => settings.store.gift,
|
predicate: () => settings.store.gift,
|
||||||
|
@ -95,7 +95,7 @@ export default definePlugin({
|
||||||
{ // Emoji list
|
{ // Emoji list
|
||||||
find: "Messages.EMOJI_PICKER_CREATE_EMOJI_TITLE,size:",
|
find: "Messages.EMOJI_PICKER_CREATE_EMOJI_TITLE,size:",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(\w+)=!\w+&&\w+.\i.isEmojiCategoryNitroLocked\(\{[^}]*\}\);/,
|
match: /(\i)=\i\|\|!\i&&\i.\i\i.isEmojiCategoryNitroLocked\(\{[^}]*\}\);/,
|
||||||
replace: "$&$1||"
|
replace: "$&$1||"
|
||||||
},
|
},
|
||||||
predicate: () => settings.store.emojiList,
|
predicate: () => settings.store.emojiList,
|
||||||
|
|
|
@ -91,7 +91,7 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
find: "this.renderArtisanalHack()",
|
find: "this.renderArtisanalHack()",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /createPromise:\(\)=>([^:}]*?),webpackId:"\d+",name:(?!="CollectiblesShop")"[^"]+"/g,
|
match: /createPromise:\(\)=>([^:}]*?),webpackId:"?\d+"?,name:(?!="CollectiblesShop")"[^"]+"/g,
|
||||||
replace: "$&,_:$1",
|
replace: "$&,_:$1",
|
||||||
predicate: () => true
|
predicate: () => true
|
||||||
}
|
}
|
||||||
|
@ -100,8 +100,8 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
find: "Messages.USER_SETTINGS_WITH_BUILD_OVERRIDE.format",
|
find: "Messages.USER_SETTINGS_WITH_BUILD_OVERRIDE.format",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(?<=(\i)\(this,"handleOpenSettingsContextMenu",.{0,100}?openContextMenuLazy.{0,100}?(await Promise\.all[^};]*?\)\)).*?,)(?=\1\(this)/,
|
match: /(\i)\(this,"handleOpenSettingsContextMenu",.{0,100}?null!=\i&&.{0,100}?(await Promise\.all[^};]*?\)\)).*?,(?=\1\(this)/,
|
||||||
replace: "(async ()=>$2)(),"
|
replace: "$&(async ()=>$2)(),"
|
||||||
},
|
},
|
||||||
predicate: () => true
|
predicate: () => true
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue