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)/,

View file

@ -36,8 +36,8 @@ export default definePlugin({
match: /let\{[^}]*lostPermissionTooltipText:\i[^}]*\}=(\i),/,
replace: "$&vencordProps=$1,"
}, {
match: /#{intl::GUILD_OWNER}(?=.+?decorators:(\i)\(\)).+?\1=?\(\)=>.+?children:\[/,
replace: "$&(typeof vencordProps=='undefined'?null:Vencord.Api.MemberListDecorators.__getDecorators(vencordProps)),"
match: /(?<=children:\[)(?=.{0,300},lostPermissionTooltipText:)/,
replace: "(typeof vencordProps=='undefined'?null:Vencord.Api.MemberListDecorators.__getDecorators(vencordProps)),"
}
]
},

View file

@ -74,8 +74,8 @@ export default definePlugin({
{
find: "#{intl::GUILD_OWNER}),children:",
replacement: {
match: /(typingIndicatorRef:.+?},)(\i=.+?)color:null!=.{0,50}?(?=,)/,
replace: (_, rest1, rest2) => `${rest1}ircColor=$self.calculateNameColorForListContext(arguments[0]),${rest2}color:ircColor`
match: /(?<=color:)null!=\i\?\i:void 0/,
replace: (_, rest1, rest2) => "$self.calculateNameColorForListContext(arguments[0])"
},
predicate: () => settings.store.memberListColors
}

View file

@ -151,8 +151,8 @@ export const ApplicationAssetUtils = mapMangledModuleLazy("getAssetImage: size m
getAssets: filters.byCode(".assets")
});
export const Clipboard: t.Clipboard = mapMangledModuleLazy('queryCommandEnabled("copy")', {
copy: filters.byCode(".copy("),
export const Clipboard: t.Clipboard = mapMangledModuleLazy("await window.navigator.clipboard.writeText(", {
copy: filters.byCode(".writeText("),
SUPPORTS_COPY: e => typeof e === "boolean"
});