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,
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)||$&"
}
]

View file

@ -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)",