mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-09 06:33:03 -04:00
parent
7ad2245c04
commit
5fb7ad2ad0
8 changed files with 14 additions and 14 deletions
|
@ -58,8 +58,8 @@ export default definePlugin({
|
||||||
replacement: [
|
replacement: [
|
||||||
{
|
{
|
||||||
// We add the banner as a property while we can still access the user id
|
// We add the banner as a property while we can still access the user id
|
||||||
match: /(?<=nameplate:(\i).*?)verified:(\i).isVerifiedBot.*?name:null.*?(?=avatar:)/,
|
match: /verified:(\i).isVerifiedBot.*?nameplate:(\i).*?name:null.*?(?=avatar:)/,
|
||||||
replace: "$&banner:$self.memberListBannerHook($2, $1),",
|
replace: "$&banner:$self.memberListBannerHook($1, $2),",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
match: /(?<=\),nameplate:)(\i)/,
|
match: /(?<=\),nameplate:)(\i)/,
|
||||||
|
@ -112,7 +112,7 @@ export default definePlugin({
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
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: [
|
patches: [
|
||||||
{
|
{
|
||||||
// Patch activity icons
|
// Patch activity icons
|
||||||
find: '"activity-status-web"',
|
find: "isBlockedOrIgnored(null",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(?<=hideTooltip:.{0,4}}=(\i).*?{}\))\]/,
|
match: /(?<=hideTooltip:.{0,4}}=(\i).*?{}\))\]/,
|
||||||
replace: ",$self.patchActivityList($1)]"
|
replace: ",$self.patchActivityList($1)]"
|
||||||
|
|
|
@ -152,7 +152,7 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
find: "._areActivitiesExperimentallyHidden=(",
|
find: "._areActivitiesExperimentallyHidden=(",
|
||||||
replacement: {
|
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; "
|
replace: "$&if($self.shouldHideUser($1.id, $2.id)) return null; "
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -71,11 +71,11 @@ export default definePlugin({
|
||||||
find: "#{intl::MESSAGE_EDITED_TIMESTAMP_A11Y_LABEL}",
|
find: "#{intl::MESSAGE_EDITED_TIMESTAMP_A11Y_LABEL}",
|
||||||
replacement: [
|
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")',
|
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")',
|
replace: '$self.format($1,"tooltipFormat","LLLL")',
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
|
@ -112,7 +112,7 @@ export default definePlugin({
|
||||||
predicate: () => settings.store.dmList,
|
predicate: () => settings.store.dmList,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
find: "!1,wrapContent",
|
find: '"AvatarWithText"',
|
||||||
replacement: [
|
replacement: [
|
||||||
{
|
{
|
||||||
match: /(\}=\i)/,
|
match: /(\}=\i)/,
|
||||||
|
|
|
@ -36,8 +36,8 @@ export default definePlugin({
|
||||||
match: /let\{[^}]*lostPermissionTooltipText:\i[^}]*\}=(\i),/,
|
match: /let\{[^}]*lostPermissionTooltipText:\i[^}]*\}=(\i),/,
|
||||||
replace: "$&vencordProps=$1,"
|
replace: "$&vencordProps=$1,"
|
||||||
}, {
|
}, {
|
||||||
match: /#{intl::GUILD_OWNER}(?=.+?decorators:(\i)\(\)).+?\1=?\(\)=>.+?children:\[/,
|
match: /(?<=children:\[)(?=.{0,300},lostPermissionTooltipText:)/,
|
||||||
replace: "$&(typeof vencordProps=='undefined'?null:Vencord.Api.MemberListDecorators.__getDecorators(vencordProps)),"
|
replace: "(typeof vencordProps=='undefined'?null:Vencord.Api.MemberListDecorators.__getDecorators(vencordProps)),"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
@ -74,8 +74,8 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
find: "#{intl::GUILD_OWNER}),children:",
|
find: "#{intl::GUILD_OWNER}),children:",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(typingIndicatorRef:.+?},)(\i=.+?)color:null!=.{0,50}?(?=,)/,
|
match: /(?<=color:)null!=\i\?\i:void 0/,
|
||||||
replace: (_, rest1, rest2) => `${rest1}ircColor=$self.calculateNameColorForListContext(arguments[0]),${rest2}color:ircColor`
|
replace: (_, rest1, rest2) => "$self.calculateNameColorForListContext(arguments[0])"
|
||||||
},
|
},
|
||||||
predicate: () => settings.store.memberListColors
|
predicate: () => settings.store.memberListColors
|
||||||
}
|
}
|
||||||
|
|
|
@ -151,8 +151,8 @@ export const ApplicationAssetUtils = mapMangledModuleLazy("getAssetImage: size m
|
||||||
getAssets: filters.byCode(".assets")
|
getAssets: filters.byCode(".assets")
|
||||||
});
|
});
|
||||||
|
|
||||||
export const Clipboard: t.Clipboard = mapMangledModuleLazy('queryCommandEnabled("copy")', {
|
export const Clipboard: t.Clipboard = mapMangledModuleLazy("await window.navigator.clipboard.writeText(", {
|
||||||
copy: filters.byCode(".copy("),
|
copy: filters.byCode(".writeText("),
|
||||||
SUPPORTS_COPY: e => typeof e === "boolean"
|
SUPPORTS_COPY: e => typeof e === "boolean"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue