diff --git a/src/plugins/timeBarAllActivities/index.tsx b/src/plugins/timeBarAllActivities/index.tsx index 04f7ff9e..ea0cf99f 100644 --- a/src/plugins/timeBarAllActivities/index.tsx +++ b/src/plugins/timeBarAllActivities/index.tsx @@ -40,7 +40,7 @@ export default definePlugin({ settings, patches: [ { - find: ".Messages.USER_ACTIVITY_PLAYING", + find: '"UserProfileActivityCard"', replacement: [ // Insert Spotify time bar component { @@ -49,7 +49,7 @@ export default definePlugin({ }, // Hide the large title on listening activities, to make them look more like Spotify (also visible from hovering over the large icon) { - match: /(\i).type===(\i\.\i)\.WATCHING/, + match: /(\i).type===(\i\..{0,10})\.WATCHING/, replace: "($self.settings.store.hideActivityDetailText&&$self.isActivityTimestamped($1)&&$1.type===$2.LISTENING)||$&" } ] diff --git a/src/plugins/userVoiceShow/index.tsx b/src/plugins/userVoiceShow/index.tsx index 8ad706c7..49762b99 100644 --- a/src/plugins/userVoiceShow/index.tsx +++ b/src/plugins/userVoiceShow/index.tsx @@ -44,7 +44,7 @@ export default definePlugin({ }, // Direct Messages Side Profile { - find: /location:"SimplifiedProfilePanel",.+?displayProfile:/, + find: /location:"UserProfilePanel",.+?displayProfile:/, replacement: { match: /PANEL,children:\[/, replace: "$&$self.renderVoiceActivityIcon(arguments[0], false, true),", @@ -52,7 +52,7 @@ export default definePlugin({ }, // Full Size Profile { - find: ':"SimplifiedUserProfileModalHeader"}', + find: ':"UserProfileModalHeader"}', replacement: { match: /.FULL_SIZE,children:\[/, replace: "$&$self.renderVoiceActivityIcon(arguments[0], false, true),", @@ -76,7 +76,7 @@ export default definePlugin({ }, // Friends list { - find: /.alignPomelo]:.+?.isPomelo()/, + find: /.alignPomelo]:\i.isPomelo()/, replacement: { match: /\.subtext,children:\i}/, replace: "$&,$self.renderVoiceActivityIcon(arguments[0], true, false)",