main
Vendicated 2 years ago
parent b8ed72286b
commit 8113ed3c8c
No known key found for this signature in database
GPG Key ID: A1DC0CFB5615D905

@ -50,10 +50,10 @@ export default definePlugin({
},
// Show plugin name instead of "Built-In"
{
find: "().source,children",
find: ".source,children",
replacement: {
// ...children: p?.name
match: /(?<=:(.{1,3})\.displayDescription\}.{0,200}\(\)\.source,children:)[^}]+/,
match: /(?<=:(.{1,3})\.displayDescription\}.{0,200}\.source,children:)[^}]+/,
replace: "$1.plugin||($&)"
}
}

@ -27,7 +27,7 @@ export default definePlugin({
{
find: "_messageAttachmentToEmbedMedia",
replacement: {
match: /(\(\)\.container\)?,children:)(\[[^\]]+\])(}\)\};return)/,
match: /(.container\)?,children:)(\[[^\]]+\])(}\)\};return)/,
replace: (_, pre, accessories, post) =>
`${pre}Vencord.Api.MessageAccessories._modifyAccessories(${accessories},this.props)${post}`,
},

@ -27,7 +27,7 @@ export default definePlugin({
{
find: ".withMentionPrefix",
replacement: {
match: /(\(\).roleDot.{10,50}{children:.{1,2})}\)/,
match: /(.roleDot.{10,50}{children:.{1,2})}\)/,
replace: "$1.concat(Vencord.Api.MessageDecorations.__addDecorationsToMessage(arguments[0]))})"
}
}

@ -43,7 +43,7 @@ export default definePlugin({
patches: [
{
find: "().embedWrapper,embed",
find: ".embedWrapper,embed",
replacement: [{
match: /(\.renderEmbed=.+?(.)=.\.props)(.+?\(\)\.embedWrapper)/g,
replace: "$1,vcProps=$2$3+(vcProps.channel.nsfw?' vc-nsfw-img':'')"

@ -74,7 +74,7 @@ export default definePlugin({
patches: [{
find: ".renderConnectionStatus=",
replacement: {
match: /(?<=renderConnectionStatus=.+\(\)\.channel,children:)\w/,
match: /(?<=renderConnectionStatus=.+\.channel,children:)\w/,
replace: "[$&, Vencord.Plugins.plugins.CallTimer.renderTimer(this.props.channel.id)]"
}
}],

@ -151,7 +151,7 @@ export default definePlugin({
}, {
find: ".Messages.NEW,name",
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>)"
}
}, {

@ -44,7 +44,7 @@ let AutomodEmbed: React.ComponentType<any>,
Endpoints: Record<string, any>;
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(["MESSAGE_CREATE_ATTACHMENT_UPLOAD"], _ => Endpoints = _);
const SearchResultClasses = findByPropsLazy("message", "searchResult");
@ -146,12 +146,12 @@ export default definePlugin({
dependencies: ["MessageAccessoriesAPI"],
patches: [
{
find: "().embedCard",
find: ".embedCard",
replacement: [{
match: /{"use strict";(.{0,10})\(\)=>(.{1,2})}\);/,
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})}\
var messageEmbed={mle_AutomodEmbed:$1};"
}]

@ -24,7 +24,7 @@ export default definePlugin({
description: "Doesn't show the small guild icons in folders",
authors: [Devs.botato],
patches: [{
find: "().expandedFolderIconWrapper",
find: ".expandedFolderIconWrapper",
replacement: [{
match: /\(\w\|\|\w\)&&(\(.{0,40}\(.{1,3}\.animated)/,
replace: "$1",

@ -32,10 +32,10 @@ export default definePlugin({
authors: [Devs.Ven, Devs.Megu],
required: true,
patches: [{
find: "().versionHash",
find: ".versionHash",
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) => {
props = props.replace(/children:\[.+\]/, "");
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`
}
}, {
find: "().popoutNoBannerPremium",
find: ".popoutNoBannerPremium",
replacement: {
match: /style:.{0,10}\{\},(.{1,2})\)/,
replace: (m, style) =>

@ -55,12 +55,12 @@ interface ModalRootProps {
type RenderFunction = (props: ModalProps) => React.ReactNode;
export const Modals = mapMangledModuleLazy("().closeWithCircleBackground", {
ModalRoot: filters.byCode("().root"),
ModalHeader: filters.byCode("().header"),
ModalContent: filters.byCode("().content"),
ModalFooter: filters.byCode("().footerSeparator"),
ModalCloseButton: filters.byCode("().closeWithCircleBackground"),
export const Modals = mapMangledModuleLazy(".closeWithCircleBackground", {
ModalRoot: filters.byCode(".root"),
ModalHeader: filters.byCode(".header"),
ModalContent: filters.byCode(".content"),
ModalFooter: filters.byCode(".footerSeparator"),
ModalCloseButton: filters.byCode(".closeWithCircleBackground"),
});
export const ModalRoot = (props: ModalRootProps) => <Modals.ModalRoot {...props} />;

@ -191,7 +191,7 @@ waitFor(m => m.Types?.INPUT_PLACEHOLDER, m => Forms.FormText = m);
waitFor(m => {
if (typeof m !== "function") return false;
const s = m.toString();
return s.length < 200 && s.includes("().divider");
return s.length < 200 && s.includes(".divider");
}, m => Forms.FormDivider = m);
// This is the same module but this is easier

Loading…
Cancel
Save