mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 21:33:35 -05:00
Fix Most Erros
This commit is contained in:
parent
f2696a118f
commit
05858f84be
2 changed files with 5 additions and 5 deletions
|
@ -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)||$&"
|
||||
}
|
||||
]
|
||||
|
|
|
@ -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)",
|
||||
|
|
Loading…
Reference in a new issue