Skip to content

Commit ad14617

Browse files
committed
[open-profile-images] fix for new profile modals
1 parent 3038478 commit ad14617

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

plugins/open-profile-images/index.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ function onClick(e) {
1515
e.stopImmediatePropagation();
1616
}
1717

18-
const bannerSelector = `[class*="inner"] header [class*="banner"]`;
18+
const bannerSelector = `div[class*="profileHeader"] div[class*="banner"]`;
1919

2020
// this is fine 🔥
2121
// it really is, i tested perf 🪄
2222
const subSelectors = [
2323
// pfp in member list
24-
`[class*="memberInner"] [class*="avatar"] [class*="wrapper"]`,
24+
`div[class*="memberInner"] > div[class*="avatar"] > div[class*="wrapper"]`,
2525
// pfp in popout of webhooks
26-
`[class*="avatarWrapperNonUserBot"]`,
26+
`div[class*="avatarWrapperNonUserBot"]`,
2727
// pfp in profile modal
28-
`[class*="headerInner"] [class*="avatar"]:not([class*="clickable"]) [class*="wrapper"]`,
28+
`div[class*="profileHeader"] > div[class*="avatar"] div[class*="wrapper"]`,
2929
// pfp in topbar in DMs, friends list, add to DM popover and own pfp in bottom left
30-
`[class*="wrapper"][class*="avatar"]`,
30+
`div[class*="wrapper"][class*="avatar"]`,
3131
// banner in profile modal
3232
bannerSelector
3333
];

0 commit comments

Comments
 (0)