Fix canary
This commit is contained in:
parent
b8ed72286b
commit
8113ed3c8c
@ -50,10 +50,10 @@ export default definePlugin({
|
|||||||
},
|
},
|
||||||
// Show plugin name instead of "Built-In"
|
// Show plugin name instead of "Built-In"
|
||||||
{
|
{
|
||||||
find: "().source,children",
|
find: ".source,children",
|
||||||
replacement: {
|
replacement: {
|
||||||
// ...children: p?.name
|
// ...children: p?.name
|
||||||
match: /(?<=:(.{1,3})\.displayDescription\}.{0,200}\(\)\.source,children:)[^}]+/,
|
match: /(?<=:(.{1,3})\.displayDescription\}.{0,200}\.source,children:)[^}]+/,
|
||||||
replace: "$1.plugin||($&)"
|
replace: "$1.plugin||($&)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ export default definePlugin({
|
|||||||
{
|
{
|
||||||
find: "_messageAttachmentToEmbedMedia",
|
find: "_messageAttachmentToEmbedMedia",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(\(\)\.container\)?,children:)(\[[^\]]+\])(}\)\};return)/,
|
match: /(.container\)?,children:)(\[[^\]]+\])(}\)\};return)/,
|
||||||
replace: (_, pre, accessories, post) =>
|
replace: (_, pre, accessories, post) =>
|
||||||
`${pre}Vencord.Api.MessageAccessories._modifyAccessories(${accessories},this.props)${post}`,
|
`${pre}Vencord.Api.MessageAccessories._modifyAccessories(${accessories},this.props)${post}`,
|
||||||
},
|
},
|
||||||
|
@ -27,7 +27,7 @@ export default definePlugin({
|
|||||||
{
|
{
|
||||||
find: ".withMentionPrefix",
|
find: ".withMentionPrefix",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(\(\).roleDot.{10,50}{children:.{1,2})}\)/,
|
match: /(.roleDot.{10,50}{children:.{1,2})}\)/,
|
||||||
replace: "$1.concat(Vencord.Api.MessageDecorations.__addDecorationsToMessage(arguments[0]))})"
|
replace: "$1.concat(Vencord.Api.MessageDecorations.__addDecorationsToMessage(arguments[0]))})"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@ export default definePlugin({
|
|||||||
|
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
find: "().embedWrapper,embed",
|
find: ".embedWrapper,embed",
|
||||||
replacement: [{
|
replacement: [{
|
||||||
match: /(\.renderEmbed=.+?(.)=.\.props)(.+?\(\)\.embedWrapper)/g,
|
match: /(\.renderEmbed=.+?(.)=.\.props)(.+?\(\)\.embedWrapper)/g,
|
||||||
replace: "$1,vcProps=$2$3+(vcProps.channel.nsfw?' vc-nsfw-img':'')"
|
replace: "$1,vcProps=$2$3+(vcProps.channel.nsfw?' vc-nsfw-img':'')"
|
||||||
|
@ -74,7 +74,7 @@ export default definePlugin({
|
|||||||
patches: [{
|
patches: [{
|
||||||
find: ".renderConnectionStatus=",
|
find: ".renderConnectionStatus=",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(?<=renderConnectionStatus=.+\(\)\.channel,children:)\w/,
|
match: /(?<=renderConnectionStatus=.+\.channel,children:)\w/,
|
||||||
replace: "[$&, Vencord.Plugins.plugins.CallTimer.renderTimer(this.props.channel.id)]"
|
replace: "[$&, Vencord.Plugins.plugins.CallTimer.renderTimer(this.props.channel.id)]"
|
||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
|
@ -151,7 +151,7 @@ export default definePlugin({
|
|||||||
}, {
|
}, {
|
||||||
find: ".Messages.NEW,name",
|
find: ".Messages.NEW,name",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /\(\)\.badgeContainer.+?.\?\(0,.\.jsx\)\(.{1,2},{name:(?<props>.)\.name}\):null/,
|
match: /.badgeContainer.+?.\?\(0,.\.jsx\)\(.{1,2},{name:(?<props>.)\.name}\):null/,
|
||||||
replace: "$&,Vencord.Plugins.plugins.IgnoreActivities.renderToggleActivityButton($<props>)"
|
replace: "$&,Vencord.Plugins.plugins.IgnoreActivities.renderToggleActivityButton($<props>)"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
|
@ -44,7 +44,7 @@ let AutomodEmbed: React.ComponentType<any>,
|
|||||||
Endpoints: Record<string, any>;
|
Endpoints: Record<string, any>;
|
||||||
|
|
||||||
waitFor(["mle_AutomodEmbed"], m => (AutomodEmbed = m.mle_AutomodEmbed));
|
waitFor(["mle_AutomodEmbed"], m => (AutomodEmbed = m.mle_AutomodEmbed));
|
||||||
waitFor(filters.byCode("().inlineMediaEmbed"), m => Embed = m);
|
waitFor(filters.byCode(".inlineMediaEmbed"), m => Embed = m);
|
||||||
waitFor(m => m.type?.toString()?.includes('["message","compact","className",'), m => ChannelMessage = m);
|
waitFor(m => m.type?.toString()?.includes('["message","compact","className",'), m => ChannelMessage = m);
|
||||||
waitFor(["MESSAGE_CREATE_ATTACHMENT_UPLOAD"], _ => Endpoints = _);
|
waitFor(["MESSAGE_CREATE_ATTACHMENT_UPLOAD"], _ => Endpoints = _);
|
||||||
const SearchResultClasses = findByPropsLazy("message", "searchResult");
|
const SearchResultClasses = findByPropsLazy("message", "searchResult");
|
||||||
@ -146,12 +146,12 @@ export default definePlugin({
|
|||||||
dependencies: ["MessageAccessoriesAPI"],
|
dependencies: ["MessageAccessoriesAPI"],
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
find: "().embedCard",
|
find: ".embedCard",
|
||||||
replacement: [{
|
replacement: [{
|
||||||
match: /{"use strict";(.{0,10})\(\)=>(.{1,2})}\);/,
|
match: /{"use strict";(.{0,10})\(\)=>(.{1,2})}\);/,
|
||||||
replace: '{"use strict";$1()=>$2,me:()=>messageEmbed});'
|
replace: '{"use strict";$1()=>$2,me:()=>messageEmbed});'
|
||||||
}, {
|
}, {
|
||||||
match: /function (.{1,2})\((.{1,2})\){var (.{1,2})=.{1,2}\.message,(.{1,2})=.{1,2}\.channel(.{0,300})\(\)\.embedCard(.{0,500})}\)}/,
|
match: /function (.{1,2})\((.{1,2})\){var (.{1,2})=.{1,2}\.message,(.{1,2})=.{1,2}\.channel(.{0,300})\.embedCard(.{0,500})}\)}/,
|
||||||
replace: "function $1($2){var $3=$2.message,$4=$2.channel$5().embedCard$6})}\
|
replace: "function $1($2){var $3=$2.message,$4=$2.channel$5().embedCard$6})}\
|
||||||
var messageEmbed={mle_AutomodEmbed:$1};"
|
var messageEmbed={mle_AutomodEmbed:$1};"
|
||||||
}]
|
}]
|
||||||
|
@ -24,7 +24,7 @@ export default definePlugin({
|
|||||||
description: "Doesn't show the small guild icons in folders",
|
description: "Doesn't show the small guild icons in folders",
|
||||||
authors: [Devs.botato],
|
authors: [Devs.botato],
|
||||||
patches: [{
|
patches: [{
|
||||||
find: "().expandedFolderIconWrapper",
|
find: ".expandedFolderIconWrapper",
|
||||||
replacement: [{
|
replacement: [{
|
||||||
match: /\(\w\|\|\w\)&&(\(.{0,40}\(.{1,3}\.animated)/,
|
match: /\(\w\|\|\w\)&&(\(.{0,40}\(.{1,3}\.animated)/,
|
||||||
replace: "$1",
|
replace: "$1",
|
||||||
|
@ -32,10 +32,10 @@ export default definePlugin({
|
|||||||
authors: [Devs.Ven, Devs.Megu],
|
authors: [Devs.Ven, Devs.Megu],
|
||||||
required: true,
|
required: true,
|
||||||
patches: [{
|
patches: [{
|
||||||
find: "().versionHash",
|
find: ".versionHash",
|
||||||
replacement: [
|
replacement: [
|
||||||
{
|
{
|
||||||
match: /\[\(0,.{1,3}\.jsxs?\)\((.{1,10}),(\{[^{}}]+\{.{0,20}\(\)\.versionHash,.+?\})\)," "/,
|
match: /\[\(0,.{1,3}\.jsxs?\)\((.{1,10}),(\{[^{}}]+\{.{0,20}.versionHash,.+?\})\)," "/,
|
||||||
replace: (m, component, props) => {
|
replace: (m, component, props) => {
|
||||||
props = props.replace(/children:\[.+\]/, "");
|
props = props.replace(/children:\[.+\]/, "");
|
||||||
return `${m},Vencord.Plugins.plugins.Settings.makeInfoElements(${component}, ${props})`;
|
return `${m},Vencord.Plugins.plugins.Settings.makeInfoElements(${component}, ${props})`;
|
||||||
|
@ -63,7 +63,7 @@ export default new class ViewIcons implements PluginDef {
|
|||||||
replace: (_, src) => `{src:${src},onClick:()=>${OPEN_URL}${src}),avatarDecoration`
|
replace: (_, src) => `{src:${src},onClick:()=>${OPEN_URL}${src}),avatarDecoration`
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
find: "().popoutNoBannerPremium",
|
find: ".popoutNoBannerPremium",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /style:.{0,10}\{\},(.{1,2})\)/,
|
match: /style:.{0,10}\{\},(.{1,2})\)/,
|
||||||
replace: (m, style) =>
|
replace: (m, style) =>
|
||||||
|
@ -55,12 +55,12 @@ interface ModalRootProps {
|
|||||||
|
|
||||||
type RenderFunction = (props: ModalProps) => React.ReactNode;
|
type RenderFunction = (props: ModalProps) => React.ReactNode;
|
||||||
|
|
||||||
export const Modals = mapMangledModuleLazy("().closeWithCircleBackground", {
|
export const Modals = mapMangledModuleLazy(".closeWithCircleBackground", {
|
||||||
ModalRoot: filters.byCode("().root"),
|
ModalRoot: filters.byCode(".root"),
|
||||||
ModalHeader: filters.byCode("().header"),
|
ModalHeader: filters.byCode(".header"),
|
||||||
ModalContent: filters.byCode("().content"),
|
ModalContent: filters.byCode(".content"),
|
||||||
ModalFooter: filters.byCode("().footerSeparator"),
|
ModalFooter: filters.byCode(".footerSeparator"),
|
||||||
ModalCloseButton: filters.byCode("().closeWithCircleBackground"),
|
ModalCloseButton: filters.byCode(".closeWithCircleBackground"),
|
||||||
});
|
});
|
||||||
|
|
||||||
export const ModalRoot = (props: ModalRootProps) => <Modals.ModalRoot {...props} />;
|
export const ModalRoot = (props: ModalRootProps) => <Modals.ModalRoot {...props} />;
|
||||||
|
@ -191,7 +191,7 @@ waitFor(m => m.Types?.INPUT_PLACEHOLDER, m => Forms.FormText = m);
|
|||||||
waitFor(m => {
|
waitFor(m => {
|
||||||
if (typeof m !== "function") return false;
|
if (typeof m !== "function") return false;
|
||||||
const s = m.toString();
|
const s = m.toString();
|
||||||
return s.length < 200 && s.includes("().divider");
|
return s.length < 200 && s.includes(".divider");
|
||||||
}, m => Forms.FormDivider = m);
|
}, m => Forms.FormDivider = m);
|
||||||
|
|
||||||
// This is the same module but this is easier
|
// This is the same module but this is easier
|
||||||
|
Loading…
Reference in New Issue
Block a user