Canary Fixes
Some checks are pending
Test / Test (push) Waiting to run

This commit is contained in:
thororen1234 2025-04-16 10:08:14 -04:00
parent 7ad2245c04
commit 5fb7ad2ad0
No known key found for this signature in database
8 changed files with 14 additions and 14 deletions

View file

@ -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>
);
},

View file

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

View file

@ -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; "
}
},

View file

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

View file

@ -112,7 +112,7 @@ export default definePlugin({
predicate: () => settings.store.dmList,
},
{
find: "!1,wrapContent",
find: '"AvatarWithText"',
replacement: [
{
match: /(\}=\i)/,