mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-16 01:53:05 -04:00
BetterActivites: Patch Both ActivityStatus Modules
This commit is contained in:
parent
c3b82dc6ee
commit
7110a2daf0
1 changed files with 3 additions and 2 deletions
|
@ -35,16 +35,17 @@ export default definePlugin({
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
// Patch activity icons
|
// Patch activity icons
|
||||||
find: "isBlockedOrIgnored(null",
|
find: '"ActivityStatus"',
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(?<=hideTooltip:.{0,4}}=(\i).*?{}\))\]/,
|
match: /(?<=hideTooltip:.{0,4}}=(\i).*?{}\))\]/,
|
||||||
replace: ",$self.patchActivityList($1)]"
|
replace: ",$self.patchActivityList($1)]"
|
||||||
},
|
},
|
||||||
predicate: () => settings.store.memberList,
|
predicate: () => settings.store.memberList,
|
||||||
|
all: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// Show all activities in the user popout/sidebar
|
// Show all activities in the user popout/sidebar
|
||||||
find: "hasAvatarForGuild(null",
|
find: '"UserProfilePopoutBody"',
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(?<=(\i)\.id\)\}\)\),(\i).*?)\(0,.{0,100}\i\.id,onClose:\i\}\)/,
|
match: /(?<=(\i)\.id\)\}\)\),(\i).*?)\(0,.{0,100}\i\.id,onClose:\i\}\)/,
|
||||||
replace: "$self.showAllActivitiesComponent({ activity: $2, user: $1 })"
|
replace: "$self.showAllActivitiesComponent({ activity: $2, user: $1 })"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue