remove unused capture gropus (#1187)

This commit is contained in:
sadan4 2026-06-17 18:32:32 -04:00 • committed by GitHub
parent 0cb5df5ab7
commit 76fd942659
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 16 additions and 16 deletions

View file

@ -85,7 +85,7 @@ export default definePlugin({
replace: "src:$self.parseLink(this.props.src,[this.props.coords.width,this.props.coords.height]),",
},
{
match: /(this\.handleCanPlay,\i)\.src=(\i)/,
match: /(this\.handleCanPlay,\i)\.src=\i/,
replace: "$1.src=$self.parseLink(this.props.src,[this.props.coords.width,this.props.coords.height])",
},
],

View file

@ -26,7 +26,7 @@ export default definePlugin({
replace: "$&.replace(/^\\++/, '+')"
},
{
match: /=(\i\.\i\.getMessages\(\i\.id\))\.last\(\)(?=.{78,85}.getByName\((\i)\.)/,
match: /=\i\.\i\.getMessages\(\i\.id\)\.last\(\)(?=.{78,85}.getByName\(\i\.)/,
replace: "=$self.getMsgReference()"
}
]

View file

@ -21,7 +21,7 @@ export default definePlugin({
find,
replacement: [
{
match: /(\i\.\i\.(unpin|pin)Message\(\i,\i\.id\)):\i\.\i\.confirm(Unpin|Pin)\(\i,\i\)/g,
match: /(\i\.\i\.(?:unpin|pin)Message\(\i,\i\.id\)):\i\.\i\.confirm(?:Unpin|Pin)\(\i,\i\)/g,
replace: "$1:$1"
}
]

View file

@ -158,8 +158,8 @@ export default definePlugin({
{
find: ".VOICE_HANGOUT_INVITE?",
replacement: {
match: /(compact:\i}=(\i).+?)(\(0,.+\}\)\]\}\))/,
replace: "$1 $self.modify(arguments[0].message,$3)"
match: /(compact:\i}=\i.+?)(\(0,.+\}\)\]\}\))/,
replace: "$1 $self.modify(arguments[0].message,$2)"
}
}
],

View file

@ -326,7 +326,7 @@ export default definePlugin({
// Channel list server boost progress bar
find: "useGuildActionRow",
replacement: {
match: /(GUILD_NEW_MEMBER_ACTIONS_PROGRESS_BAR\)):(\i(?:\.premiumProgressBarEnabled)?)/,
match: /(GUILD_NEW_MEMBER_ACTIONS_PROGRESS_BAR\)):\i(?:\.premiumProgressBarEnabled)?/,
replace: "$1:null"
},
predicate: () => settings.store.removeServerBoostInfo,

View file

@ -199,7 +199,7 @@ export default definePlugin({
{
find: "POPOUT)},children:",
replacement: {
match: /(?<=getUser\(\i\.ownerId\).{0,100})className:\i\.\i,onClick:\i=>\{\(0,\i\.\i\)\((\i),/,
match: /(?<=getUser\(\i\.ownerId\).{0,100})className:\i\.\i,onClick:\i=>\{\(0,\i\.\i\)\(\i,/,
replace: "draggable:!0,onDragStart:e=>$self.onChannelDragStart(e,{id:arguments[0]?.thread?.id,guild_id:arguments[0]?.thread?.guild_id}),$&"
}
},

View file

@ -199,7 +199,7 @@ export default definePlugin({
{
find: "discarding speculative database",
replacement: {
match: /await (\i)\((\i)\)(?=;.{0,15}this\.databases)/,
match: /await \i\(\i\)(?=;.{0,15}this\.databases)/,
replace: "$&.catch(()=>null)"
}
},

View file

@ -50,7 +50,7 @@ export default definePlugin({
// Override the default renderAdjacentContent prop value for all types of embed components (renderImageComponent, renderVideoComponent...)
find: "#{intl::MEDIA_MOSAIC_ALT_TEXT_POPOUT_TITLE}",
replacement: {
match: /renderAdjacentContent:(\i)/g,
match: /renderAdjacentContent:\i/g,
replace: "$&=$self.renderEmbedAccessory"
}
},

View file

@ -250,7 +250,7 @@ export default definePlugin({
{
find: "PrivateChannel.renderAvatar",
replacement: {
match: /,subText:(\i)\.isSystemDM\(\).{0,500}:null,(?=name:)/,
match: /,subText:\i\.isSystemDM\(\).{0,500}:null,(?=name:)/,
replace: ",subText:$self.getSubText(arguments[0]),"
}
}

View file

@ -51,7 +51,7 @@ export default definePlugin({
replace: "default:$2=$self.getTagText($self.localTags[$1]);",
},
{
match: /(?<=type:(\i).*?)\.BOT:(?=default:)/,
match: /(?<=type:\i.*?)\.BOT:(?=default:)/,
replace: "$&return null;",
predicate: () => settings.store.dontShowBotTag
},

View file

@ -170,7 +170,7 @@ export default definePlugin({
find: '("ActivityStatus"),',
predicate: () => getQuestifySettings().disableQuestsEverything || getQuestifySettings().disableMembersListPromo,
replacement: {
match: /(,hasQuest:)(?=\i=!1)/,
match: /,hasQuest:(?=\i=!1)/,
replace: ",questifyInvalid1:"
}
},
@ -283,7 +283,7 @@ export default definePlugin({
replace: "$1+($2>=1e6?0.8:$2>=1e3?0.4:0)"
},
{
match: /(?<=children:\i.to\(\i=>`\${\i)(.toFixed\(0\))/,
match: /(?<=children:\i.to\(\i=>`\${\i).toFixed\(0\)/,
replace: ".toLocaleString(undefined,{maximumFractionDigits:0})"
}
]
@ -338,7 +338,7 @@ export default definePlugin({
replacement: [
{
// Overwrite button props for UNENROLLED Quests.
match: /(?<=onClick:(\(\)=>{.[^}]+}),text:(\i),icon:\i,fullWidth:!0)/,
match: /(?<=onClick:\(\)=>{.[^}]+},text:\i,icon:\i,fullWidth:!0)/,
replace: ",...($self.getQuestButtonProps(arguments[0])??{})"
},
{

View file

@ -57,7 +57,7 @@ export default definePlugin({
replace: "$1$self.getMaxAccounts()",
},
{
match: /(\i.length(<|>=))5/g,
match: /(\i.length(?:<|>=))5/g,
replace: "$1$self.getMaxAccounts()",
},
]

View file

@ -42,7 +42,7 @@ export default definePlugin({
find: "UNREAD_IMPORTANT:",
replacement: [
{
match: /\.Children\.count.+?:null(?<=,channel:(\i).+?)/,
match: /\.Children\.count.+?:null(?<=,channel:\i.+?)/,
replace: "$&,$self.CountBadge({channel: arguments[0].channel})",
},
]