mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-24 22:07:03 -04:00
parent
7ad2245c04
commit
5fb7ad2ad0
8 changed files with 14 additions and 14 deletions
|
@ -58,8 +58,8 @@ export default definePlugin({
|
|||
replacement: [
|
||||
{
|
||||
// We add the banner as a property while we can still access the user id
|
||||
match: /(?<=nameplate:(\i).*?)verified:(\i).isVerifiedBot.*?name:null.*?(?=avatar:)/,
|
||||
replace: "$&banner:$self.memberListBannerHook($2, $1),",
|
||||
match: /verified:(\i).isVerifiedBot.*?nameplate:(\i).*?name:null.*?(?=avatar:)/,
|
||||
replace: "$&banner:$self.memberListBannerHook($1, $2),",
|
||||
},
|
||||
{
|
||||
match: /(?<=\),nameplate:)(\i)/,
|
||||
|
@ -112,7 +112,7 @@ export default definePlugin({
|
|||
}
|
||||
|
||||
return (
|
||||
<img id={`vc-banners-everywhere-${user.id}`} src={url} className="vc-banners-everywhere-memberlist"></img>
|
||||
<img alt="" id={`vc-banners-everywhere-${user.id}`} src={url} className="vc-banners-everywhere-memberlist"></img>
|
||||
);
|
||||
},
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ export default definePlugin({
|
|||
patches: [
|
||||
{
|
||||
// Patch activity icons
|
||||
find: '"activity-status-web"',
|
||||
find: "isBlockedOrIgnored(null",
|
||||
replacement: {
|
||||
match: /(?<=hideTooltip:.{0,4}}=(\i).*?{}\))\]/,
|
||||
replace: ",$self.patchActivityList($1)]"
|
||||
|
|
|
@ -152,7 +152,7 @@ export default definePlugin({
|
|||
{
|
||||
find: "._areActivitiesExperimentallyHidden=(",
|
||||
replacement: {
|
||||
match: /(?<=user:(\i),guildId:\i,channel:(\i).*?)BOOST_GEM_ICON\}\}\)\)\};/,
|
||||
match: /(?<=user:(\i),guildId:\i,channel:(\i).*?)BOOST_GEM_ICON.{0,10}\);/,
|
||||
replace: "$&if($self.shouldHideUser($1.id, $2.id)) return null; "
|
||||
}
|
||||
},
|
||||
|
|
|
@ -71,11 +71,11 @@ export default definePlugin({
|
|||
find: "#{intl::MESSAGE_EDITED_TIMESTAMP_A11Y_LABEL}",
|
||||
replacement: [
|
||||
{
|
||||
match: /(?<=\i=null!=\i\?).{0,25}\((\i),"LT"\):\(0,\i\.\i\)\(\i,!0\)/,
|
||||
match: /(?<=null!=\i\?).{0,25}\((\i),"LT"\):\(0,\i\.\i\)\(\i,!0\)/,
|
||||
replace: '$self.format($1,"compactFormat","[calendar]"):$self.format($1,"cozyFormat","LT")',
|
||||
},
|
||||
{
|
||||
match: /(?<=text:)\(0,\i.\i\)\((\i),"LLLL"\)(?=,)/,
|
||||
match: /(?<=text:)\(\)=>\(0,\i.\i\)\((\i),"LLLL"\)(?=,)/,
|
||||
replace: '$self.format($1,"tooltipFormat","LLLL")',
|
||||
},
|
||||
]
|
||||
|
|
|
@ -112,7 +112,7 @@ export default definePlugin({
|
|||
predicate: () => settings.store.dmList,
|
||||
},
|
||||
{
|
||||
find: "!1,wrapContent",
|
||||
find: '"AvatarWithText"',
|
||||
replacement: [
|
||||
{
|
||||
match: /(\}=\i)/,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue