im so sorry to anyone who has to read this disgrace of finds

This commit is contained in:
thororen 2026-09-22 23:56:02 -04:00
parent 40b4f98cb3
commit 6f02e91d8e
No known key found for this signature in database
4 changed files with 4 additions and 4 deletions

View file

@ -18,7 +18,7 @@ import { cl, ForwardOptionsContext, ForwardOptionsState } from ".";
type AttachmentType = "IMAGE" | "VIDEO" | "CLIP" | "AUDIO" | "VISUAL_PLACEHOLDER" | "PLAINTEXT_PREVIEW" | "OTHER" | "INVALID";
const TagGroup = findComponentByCodeLazy('"filter-tag-group"', '"tag-group"');
const TagGroup = findComponentByCodeLazy('="default",layout:', '="inline"===');
const ServerProfileComponent = findComponentByCodeLazy("{guildProfile:", "GUILD_PROFILE");
const getAttachmentType = findByCodeLazy('"PLAINTEXT_PREVIEW":"OTHER"');
const formatChannelName = findByCodeLazy("#{intl::NO_ACCESS}", "isObfuscated()");

View file

@ -123,7 +123,7 @@ export default definePlugin({
replace: "$self.renderWrapper(__state,$&)"
},
{
match: /(?<=#{intl::CHECKPOINT_2025}.{50,100}?)\i>0&&\(.{200,250}?\}\)\]\}\)/,
match: /(?<=compact:\i\}\),)\i>0&&\(.{200,250}?\}\)\]\}\)/,
replace: "$self.ForwardPicker()"
},
{

View file

@ -234,7 +234,7 @@ export default definePlugin({
// Nameplate
find: ".MINI_PREVIEW,[",
replacement: {
match: /function \i\((\i)\)\{(?=let.{1,5}\{nameplate:\i,)/,
match: /function \i\((\i)\)\{(?=let.{0,5}\{nameplate:\i,)/,
replace:
'$&if($1.placement!=="preview"&&$1.placement!=="mini_preview")return null;',
},

View file

@ -268,7 +268,7 @@ interface SettingsSwitchLayoutProps extends SwitchWithLabelProps {
tooltip?: { position: "top" | "bottom", text: string; };
}
const SwitchWithLabel = findComponentByCodeLazy('auxiliaryContentPosition:"under-label"') as React.ComponentType<SwitchWithLabelProps>;
const SwitchWithLabel = findComponentByCodeLazy("switchIconsEnabled:", ".hasIcon?") as React.ComponentType<SwitchWithLabelProps>;
export type SettingsSubtleSwitchProps = Omit<SettingsSwitchLayoutProps, "description">;