Fix MutualGroupDMs and UserVoiceShow patch
This commit is contained in:
parent
18d4780635
commit
778d79cd35
|
@ -45,7 +45,7 @@ export default definePlugin({
|
||||||
|
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
find: ".Messages.USER_PROFILE_MODAL", // Note: the module is lazy-loaded
|
find: ".Messages.MUTUAL_GUILDS_WITH_END_COUNT", // Note: the module is lazy-loaded
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(?<=\.tabBarItem.{0,50}MUTUAL_GUILDS.+?}\),)(?=.+?(\(0,\i\.jsxs?\)\(.{0,100}id:))/,
|
match: /(?<=\.tabBarItem.{0,50}MUTUAL_GUILDS.+?}\),)(?=.+?(\(0,\i\.jsxs?\)\(.{0,100}id:))/,
|
||||||
replace: '(arguments[0].user.bot||arguments[0].isCurrentUser)?null:$1"MUTUAL_GDMS",children:"Mutual Groups"}),'
|
replace: '(arguments[0].user.bot||arguments[0].isCurrentUser)?null:$1"MUTUAL_GDMS",children:"Mutual Groups"}),'
|
||||||
|
|
|
@ -104,7 +104,7 @@ export default definePlugin({
|
||||||
},
|
},
|
||||||
// below username
|
// below username
|
||||||
{
|
{
|
||||||
find: ".USER_PROFILE_MODAL",
|
find: ".Messages.MUTUAL_GUILDS_WITH_END_COUNT", // Lazy-loaded
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /\.body.+?displayProfile:\i}\),/,
|
match: /\.body.+?displayProfile:\i}\),/,
|
||||||
replace: "$&$self.patchModal(arguments[0]),",
|
replace: "$&$self.patchModal(arguments[0]),",
|
||||||
|
|
Loading…
Reference in a new issue