Fix Most Erros

This commit is contained in:
thororen1234 2024-09-05 22:47:47 -04:00
parent f2696a118f
commit 05858f84be
2 changed files with 5 additions and 5 deletions

View file

@ -40,7 +40,7 @@ export default definePlugin({
settings, settings,
patches: [ patches: [
{ {
find: ".Messages.USER_ACTIVITY_PLAYING", find: '"UserProfileActivityCard"',
replacement: [ replacement: [
// Insert Spotify time bar component // 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) // 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)||$&" replace: "($self.settings.store.hideActivityDetailText&&$self.isActivityTimestamped($1)&&$1.type===$2.LISTENING)||$&"
} }
] ]

View file

@ -44,7 +44,7 @@ export default definePlugin({
}, },
// Direct Messages Side Profile // Direct Messages Side Profile
{ {
find: /location:"SimplifiedProfilePanel",.+?displayProfile:/, find: /location:"UserProfilePanel",.+?displayProfile:/,
replacement: { replacement: {
match: /PANEL,children:\[/, match: /PANEL,children:\[/,
replace: "$&$self.renderVoiceActivityIcon(arguments[0], false, true),", replace: "$&$self.renderVoiceActivityIcon(arguments[0], false, true),",
@ -52,7 +52,7 @@ export default definePlugin({
}, },
// Full Size Profile // Full Size Profile
{ {
find: ':"SimplifiedUserProfileModalHeader"}', find: ':"UserProfileModalHeader"}',
replacement: { replacement: {
match: /.FULL_SIZE,children:\[/, match: /.FULL_SIZE,children:\[/,
replace: "$&$self.renderVoiceActivityIcon(arguments[0], false, true),", replace: "$&$self.renderVoiceActivityIcon(arguments[0], false, true),",
@ -76,7 +76,7 @@ export default definePlugin({
}, },
// Friends list // Friends list
{ {
find: /.alignPomelo]:.+?.isPomelo()/, find: /.alignPomelo]:\i.isPomelo()/,
replacement: { replacement: {
match: /\.subtext,children:\i}/, match: /\.subtext,children:\i}/,
replace: "$&,$self.renderVoiceActivityIcon(arguments[0], true, false)", replace: "$&,$self.renderVoiceActivityIcon(arguments[0], true, false)",