File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
plugins/open-profile-images Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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 🪄
2222const 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] ;
You can’t perform that action at this time.
0 commit comments