This commit is contained in:
thororen1234 2026-02-05 01:46:29 -05:00
parent 71c1cebb17
commit 1c0b96972e
No known key found for this signature in database
17 changed files with 10 additions and 67 deletions

View file

@ -27,7 +27,7 @@ export default definePlugin({
patches: [
{
// Patch activity icons
find: '"StackedActivityStatus"',
find: '"ActivityStatus"),',
replacement: [
{
match: /(?<=className:\i,children:\[).*?(?=\i\(\),\i&&)/g,

View file

@ -26,7 +26,7 @@ export let colors: Record<string, string> = {};
})();
// needed for color picker to be available without opening settings (ty pindms!!)
const requireSettingsMenu = extractAndLoadChunksLazy(['name:"UserSettings"'], /createPromise:.{0,20}(\i\.\i\("?.+?"?\).*?).then\(\i\.bind\(\i,"?(.+?)"?\)\).{0,50}"UserSettings"/);
const requireSettingsMenu = extractAndLoadChunksLazy(['"AppSkeleton"'], /createPromise:.{0,20}(\i\.\i\("?.+?"?\).*?).then\(\i\.bind\(\i,"?(.+?)"?\)\).{0,50}\}\),(?=.{0,15}createPromise.*?\}\),)/);
const ColorIcon = () => {
return (
<svg

View file

@ -89,7 +89,7 @@ export default definePlugin({
{
find: "#{intl::INCOMING_CALL_ELLIPSIS}",
replacement: {
match: /\(\i\)\)\),className:\i\.\i\}\)/,
match: /(?<=onCallJoined:\(\).{0,150})\(\i\)\}\),className:\i\.\i\}\)/,
replace: "$&,$self.renderIgnore(arguments[0].channel)"
}
}

View file

@ -17,7 +17,7 @@ import RemixModal from "./RemixModal";
import css from "./styles.css?managed";
const requireCreateStickerModal = extractAndLoadChunksLazy([".CREATE_STICKER_MODAL,", "isDisplayingIndividualStickers"]);
const requireSettingsMenu = extractAndLoadChunksLazy(['name:"UserSettings"'], /createPromise:.{0,20}(\i\.\i\("?.+?"?\).*?).then\(\i\.bind\(\i,"?(.+?)"?\)\).{0,50}"UserSettings"/);
const requireSettingsMenu = extractAndLoadChunksLazy(['"AppSkeleton"'], /createPromise:.{0,20}(\i\.\i\("?.+?"?\).*?).then\(\i\.bind\(\i,"?(.+?)"?\)\).{0,50}\}\),(?=.{0,15}createPromise.*?\}\),)/);
const PendingReplyStore = findStoreLazy("PendingReplyStore");
const validMediaTypes = ["image/png", "image/jpeg", "image/jpg", "image/webp"];

View file

@ -29,7 +29,7 @@ const cl = classNameFactory("vc-userpfp-");
const DONO_URL = "https://ko-fi.com/coolesding";
const INVITE_LINK = "userpfp-1129784704267210844";
export const requireSettingsMenu = extractAndLoadChunksLazy(['name:"UserSettings"'], /createPromise:.{0,20}(\i\.\i\("?.+?"?\).*?).then\(\i\.bind\(\i,"?(.+?)"?\)\).{0,50}"UserSettings"/);
export const requireSettingsMenu = extractAndLoadChunksLazy(['"AppSkeleton"'], /createPromise:.{0,20}(\i\.\i\("?.+?"?\).*?).then\(\i\.bind\(\i,"?(.+?)"?\)\).{0,50}\}\),(?=.{0,15}createPromise.*?\}\),)/);
export const KEY_DATASTORE = "vencord-custom-avatars";
export const data = { avatars: {} as Record<string, string> };

View file

@ -52,11 +52,6 @@ export default definePlugin({
{
find: "#{intl::COMMANDS_OPTIONAL_COUNT}",
replacement: [
{
// ...children: p?.name
match: /(?<=:(\i)\.displayDescription\}.{0,200}children:).{0,50}\.name(?=\}\))/,
replace: "$1.plugin||($&)"
},
{
match: /children:(?=\i\?\?\i\?\.name)(?<=command:(\i),.+?)/,
replace: "children:$1.plugin??"

View file

@ -27,10 +27,6 @@ export default definePlugin({
{
find: "renderHeaderContent(){",
replacement: [
{
match: /(?<="state",{resultType:)null/,
replace: '"Favorites"'
},
{
match: /(?<=state={resultType:)null/,
replace: '"Favorites"'

View file

@ -149,10 +149,6 @@ export default definePlugin({
{
find: "is not a valid locale.",
replacement: [
{
match: /\i\.error(?=\(""\.concat\(\i," is not a valid locale."\)\))/,
replace: "$self.Noop"
},
{
match: /\i\.error(?=\(`\$\{\i\} is not a valid locale.`)/,
replace: "$self.Noop"
@ -169,10 +165,6 @@ export default definePlugin({
{
find: "RPCServer:WSS",
replacement: [
{
match: /\i\.error\("Error: "\.concat\((\i)\.message/,
replace: '!$1.message.includes("EADDRINUSE")&&$&'
},
{
match: /\i\.error\(`Error: \$\{(\i)\.message\}/,
replace: '!$1.message.includes("EADDRINUSE")&&$&'
@ -196,10 +188,6 @@ export default definePlugin({
{
find: "failed to send analytics events",
replacement: [
{
match: /console\.error\("\[analytics\] failed to send analytics events query: "\.concat\(\i\)\)/,
replace: ""
},
{
match: /console\.error\(`\[analytics\] failed to send analytics events query: \$\{\i\}`\)/,
replace: ""

View file

@ -103,10 +103,6 @@ export default definePlugin({
].map(find => ({
find,
replacement: [
{
match: /(?<=userValue.{0,25}void 0:)((\i)\.avatarDecoration)/,
replace: "$self.useUserDecorAvatarDecoration($2)??$1"
},
{
match: /(?<=userValue:)((\i)(?:.{0,10})?\.avatarDecoration)/,
replace: "$self.useUserDecorAvatarDecoration($2)??$1"

View file

@ -131,7 +131,7 @@ export default definePlugin({
},
{
// Expands the experiment regex to allow negative numbers as well as text in the last segment of the URL.
find: "?\"dev://experiment/\".concat",
find: '"^dev://experiment/',
replacement: {
match: /(\[0-9\]\+)/,
replace: "[a-zA-Z0-9-]+"
@ -140,11 +140,6 @@ export default definePlugin({
{
find: ".EXPERIMENT_TREATMENT&&null",
replacement: [
{
// Uses the label instead of the value for the button text in the experiment embed.
match: /"Clear Treatment ".concat\((\i).value\):"Apply Treatment ".concat\(\i.value\)/,
replace: '"Clear Treatment: ".concat($1.label):"Apply Treatment: ".concat($1.label)'
},
{
// Allow linking experiments by their label instead of their value.
match: /(?<=find\(\i=>)((\i).value===\i)/,

View file

@ -53,10 +53,6 @@ export default definePlugin({
// HEY THOR UPDATE SHOW ME YOUR NAME IF THIS SHIT CHANGES TY :)
find: ".USER_MENTION)",
replacement: [
{
match: /children:"@"\.concat\((null!=\i\?\i:\i)\)(?<=\.useName\((\i)\).+?)/,
replace: "children:$self.renderUsername({username:$1,user:$2,showMeYourNameMention:typeof showMeYourNameMention!=='undefined'?showMeYourNameMention:undefined})"
},
{
match: /children:`@\$\{(\i\?\?\i)\}`(?<=\.useName\((\i)\).+?)/,
replace: "children:$self.renderUsername({username:$1,user:$2,showMeYourNameMention:typeof showMeYourNameMention!=='undefined'?showMeYourNameMention:undefined})"
@ -72,9 +68,9 @@ export default definePlugin({
},
{
// show avatar in the chat input box
find: '.hasUniqueUsername()?null:"#"',
find: ".hasUniqueUsername()?null:`#",
replacement: {
match: /(?<=,(\i)\).{0,55})"@"\.concat\((\i)\)/,
match: /(?<=,(\i)\).{0,55})`@\$\{(\i)\}`/,
replace: "$self.renderInputMention($2,$1)"
}
}],

View file

@ -352,13 +352,6 @@ export default definePlugin({
match: /\i>0(?=&&!\i&&!\i)/,
replace: m => `($self.isHiddenChannel(typeof shcChannel!=="undefined"?shcChannel:void 0,true)?true:${m})`
},
{
// Show only the plus text without overflowed children amount
// if the overflow amount is <= 0 and the component is used inside the HiddenChannelLockScreen
match: /(?<=`\+\$\{)\i(?=\})/,
replace: overflowTextAmount => "" +
`$self.isHiddenChannel(typeof shcChannel!=="undefined"?shcChannel:void 0,true)&&(${overflowTextAmount}-1)<=0?"":${overflowTextAmount}`
},
{
// Show only the plus text without overflowed children amount
// if the overflow amount is <= 0 and the component is used inside the HiddenChannelLockScreen

View file

@ -266,7 +266,7 @@ export default definePlugin({
{
find: "!1,hideSimpleEmbedContent",
replacement: {
match: /(let{toAST:.{0,125}?)\(null!=\i\?\i:\i\).content/,
match: /(let{toAST:.{0,125}?)\(\i\?\?\i\).content/,
replace: "const textReplaceContent=$self.modifyIncomingMessage(arguments[2]?.contentMessage??arguments[1]);$1textReplaceContent"
}
},

View file

@ -40,10 +40,6 @@ export default definePlugin({
{
find: "#{intl::LABEL_WITH_ONLINE_STATUS}",
replacement: [
{
match: /src:null!=\i\?(\i).{1,50}"aria-hidden":!0/,
replace: "$&,style:$self.getAvatarStyles($1)"
},
{
match: /src:(\i)\?\?void 0.{1,50}"aria-hidden":!0/,
replace: "$&,style:$self.getAvatarStyles($1)"

View file

@ -150,7 +150,7 @@ export default definePlugin({
]
},
{
find: "\"handleDismissInviteEducation\"",
find: "this.handleDismissInviteEducation",
predicate: () => settings.store.amITyping,
replacement: {
match: /\i\.default\.getCurrentUser\(\)/,

View file

@ -206,10 +206,6 @@ export default definePlugin({
{
find: 'backgroundColor:"COMPLETE"',
replacement: [
{
match: /(overflow:"visible",.{0,125}?!1\),)style:{(?=.+?backgroundImage:null!=(\i)\?"url\("\.concat\(\2,)/,
replace: (_, rest, bannerSrc) => `${rest}onClick:()=>${bannerSrc}!=null&&$self.openBanner(${bannerSrc}),style:{cursor:${bannerSrc}!=null?"pointer":void 0,`
},
{
match: /(overflow:"visible",.{0,125}?!1\),)style:{(?=.+?backgroundImage:null!=(\i)\?`url\(\$\{\2\}\))/,
replace: (_, rest, bannerSrc) => `${rest}onClick:()=>${bannerSrc}!=null&&$self.openBanner(${bannerSrc}),style:{cursor:${bannerSrc}!=null?"pointer":void 0,`

View file

@ -17,10 +17,6 @@ export default definePlugin({
{
find: "x-google-max-bitrate",
replacement: [
{
match: /"x-google-max-bitrate=".concat\(\i\)/,
replace: '"x-google-max-bitrate=".concat("80_000")'
},
{
match: /`x-google-max-bitrate=\$\{\i\}`/,
replace: '"x-google-max-bitrate=80_000"'
@ -29,10 +25,6 @@ export default definePlugin({
match: ";level-asymmetry-allowed=1",
replace: ";b=AS:800000;level-asymmetry-allowed=1"
},
{
match: /;usedtx=".concat\((\i)\?"0":"1"\)/,
replace: '$&.concat($1?";stereo=1;sprop-stereo=1":"")'
},
{
match: /;usedtx=\$\{(\i)\?"0":"1"\}/,
replace: '$&${$1?";stereo=1;sprop-stereo=1":""}'